자바26 [프로그래머스]완주하지 못한 선수 [Java/자바] 문제: https://programmers.co.kr/learn/courses/30/lessons/42576 코드: https://github.com/irerin07/AlgorithmStudyBaek/blob/master/src/programmers_lvl_1/programmers42576.java import java.util.Arrays; public class programmers42576 { public static void main(String[] args) { String[] praticipant = {"marina", "josipa", "nikola", "vinko", "filipa"}; String [] completion = {"josipa", "filipa", "marina", "nik.. 2019. 9. 24. [백준] 덩치 [Java/자바] 문제:https://www.acmicpc.net/problem/7568 코드:https://github.com/irerin07/AlgorithmStudyBaek/blob/master/src/baekjoon7568.java import java.util.Scanner; public class baekjoon7568 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int P[][] = new int[N][2]; //몸무게, 키 for(int i=0;ip[j][0] && p[i][1]>p[j][1]){ answer[j]++; } } } return answer; } } 브루트포.. 2019. 9. 10. [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 6 7 다음 728x90