문제https://www.acmicpc.net/problem/1202풀이import java.io.*;import java.util.*;public class Main{ static long N, K; static PriorityQueue jewelQueue = new PriorityQueue((o1, o2) -> { if(o1.v != o2.v) { return Long.compare(o2.v, o1.v); // 값 기준 내림차순 } return Long.compare(o1.m, o2.m); // 무게 기준 오름차순 (같을 때) }); public static void main(String[] args) throws IO..