Java18 [백준] 분해합 [Java/자바] 문제: https://www.acmicpc.net/problem/2231 코드: https://github.com/irerin07/AlgorithmStudyBaek/blob/master/src/baekjoon2231.java import java.util.ArrayList; import java.util.Scanner; public class baekjoon2231 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); System.out.println(solution(N)); } public static int solution(int N){ int answer = 0; for(.. 2019. 9. 10. [백준]블랙잭 [Java/자바] https://www.acmicpc.net/problem/2798 문제 https://github.com/irerin07/AlgorithmStudyBaek/blob/master/src/baekjoon2798.java 코드 import java.io.*; import java.util.ArrayList; import java.util.Collections; import java.util.StringTokenizer; public class baekjoon2798 { public static void main(String[] args) { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st = .. 2019. 9. 9. [Java]프로그래머스 더 맵게 import java.io.*; import java.util.*; class Main { public static void main(String[] args) { int[] scoville = {0,1}; int K = 3; System.out.println(solution(scoville, K)); } public static int solution(int[] scoville, int K) { int answer = 0; PriorityQueue pQueue = new PriorityQueue(); if (scoville.length 2019. 4. 24. [Java]프로그래머스 카펫 ``` class Solution { public int[] solution(int brown, int red) { int[] answer = new int[2]; int sum = brown + red; for(int i = 3; i 2019. 4. 15. 이전 1 2 3 4 5 다음 728x90