백준 12915 대회 개최
·
독서/알고리즘
import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.Arrays; public class Main { enum Difficulty { LOW { @Override boolean request(int[] questions) { return Difficulty.pop(questions, 0, 1); } }, MEDIUM { @Override boolean request(int[] questions) { int s1 = 1; int s2 = 3; if (questions[s1] < questions[s2]) { int tmp = s1; s1 = s2; s2 = tmp; } if (Difficulty.pop(quest..