diff --git a/0510/BOJ/P1764/P1764_yu.java b/0510/BOJ/P1764/P1764_yu.java new file mode 100644 index 0000000..c5a050f --- /dev/null +++ b/0510/BOJ/P1764/P1764_yu.java @@ -0,0 +1,45 @@ + +import java.util.Arrays; +import java.util.Collections; +import java.util.Comparator; +import java.util.HashMap; +import java.util.LinkedList; +import java.util.List; +import java.util.Scanner; + +public class bj_1764_듣보잡 { +public static void main(String[] args) { + + Scanner sc = new Scanner(System.in); + + StringBuilder sb = new StringBuilder(); + + int n = sc.nextInt(); // 못들어본 사람 + int m = sc.nextInt(); // 못본사람 + + HashMap nosee = new HashMap<>(); + + for(int i=0; i pick = new LinkedList<>(); + + for(int i=0; i pq = new PriorityQueue<>(); + + int n = sc.nextInt(); + + StringBuilder sb = new StringBuilder(); + + for(int i = 0; i alp = new ArrayList<>(Arrays.asList("1", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", + "S", "T", "U", "V", "W", "X", "Y", "Z")); + + List ans = new ArrayList<>(); + + outer: for(int i=0; imsg.length()) { + ans.add(alp.indexOf(msg.substring(i, msg.length()))); + break outer; + } + } + + // 정답 배열로 출력 + int[] answer = new int[ans.size()]; + + for(int i=0; i