현실을 넘어
close
프로필 배경
프로필 로고

현실을 넘어

  • 분류 전체보기
    • 자바
      • 일반
      • 알고리즘
      • 객사오
      • 스프링입문객체지향
      • 리팩토링
      • 스프링부트3
      • JPA
      • QueryDsl
      • Spring Security
    • 코틀린
      • 코틀린인액션
      • 알고리즘
    • 일 관련 삽질
    • JIRA
    • 도메인주도개발
    • DB
      • Mysql
    • MQ
      • Apache Kafka
    • Docker-Kubernetes
    • GITHUB
    • REST API
    • 리눅스
  • 홈
  • 태그
  • 방명록

프로그래머스 lv1: 로또의 최고 순위와 최저 순위

import java.util.Arrays; class Solution { public int[] solution(int[] lottos, int[] win_nums) { Arrays.sort(lottos); Arrays.sort(win_nums); int count = 0; int zeroCount = 0; int rank = 0; System.out.println("win_nums = " + Arrays.toString(win_nums)); System.out.println("lottos = " + Arrays.toString(lottos)); for (int i = 0; i < lottos.length; i++) { if (lottos[i] != 0) { for (int j = 0; j < win_..

  • format_list_bulleted 자바/알고리즘
  • · 2021. 12. 28.
  • textsms

백준 9095번 1,2,3 더하기

https://www.acmicpc.net/problem/9095 9095번: 1, 2, 3 더하기 각 테스트 케이스마다, n을 1, 2, 3의 합으로 나타내는 방법의 수를 출력한다. www.acmicpc.net import java.util.Scanner; public class Main { public static void main(String[] args) { int dp[] = new int[11]; //최대 11까지만 한다고 했으니까. Scanner sc = new Scanner(System.in); int t = sc.nextInt(); dp[1] = 1; //초기값의 초기화 dp[2] = 2; dp[3] = 4; for (int i = 4; i

  • format_list_bulleted 자바/알고리즘
  • · 2021. 7. 23.
  • textsms

백준 10870번 . 피보나치 수 5

https://www.acmicpc.net/problem/10870 10870번: 피보나치 수 5 피보나치 수는 0과 1로 시작한다. 0번째 피보나치 수는 0이고, 1번째 피보나치 수는 1이다. 그 다음 2번째 부터는 바로 앞 두 피보나치 수의 합이 된다. 이를 식으로 써보면 Fn = Fn-1 + Fn-2 (n ≥ 2)가 www.acmicpc.net import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int[] fi = new int[22]; fi[0] = 0; fi[1] = 1; for (int i = 2; i < 21; i++) { ..

  • format_list_bulleted 자바/알고리즘
  • · 2021. 7. 23.
  • textsms
  • navigate_before
  • 1
  • ···
  • 61
  • 62
  • 63
  • 64
  • navigate_next
공지사항
  • ㅇ
전체 카테고리
  • 분류 전체보기
    • 자바
      • 일반
      • 알고리즘
      • 객사오
      • 스프링입문객체지향
      • 리팩토링
      • 스프링부트3
      • JPA
      • QueryDsl
      • Spring Security
    • 코틀린
      • 코틀린인액션
      • 알고리즘
    • 일 관련 삽질
    • JIRA
    • 도메인주도개발
    • DB
      • Mysql
    • MQ
      • Apache Kafka
    • Docker-Kubernetes
    • GITHUB
    • REST API
    • 리눅스
최근 글
인기 글
최근 댓글
태그
  • #객체지향
  • #객사오
  • #JPA
  • #QueryDSL
  • #Kotlin
  • #도메인주도개발
  • #리팩토링
  • #ddd
  • #자바
  • #알고리즘
전체 방문자
오늘
어제
전체
Copyright © 쭈미로운 생활 All rights reserved.
Designed by JJuum

티스토리툴바