StringBuffer 알고리즘 문제 정리
BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int tc = Integer.parseInt(br.readLine()); for (int i = 0; i < tc; i++) { String[] command = br.readLine().split(" "); if (command[0].equals("add")) { int num = Integer.parseInt(command[1])-1; set.addNum(num); } } public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new Buffere..
Algorithms
2020. 3. 26. 23:25