728x90 반응형 27851 [백준] 2785번 : 체인 https://www.acmicpc.net/problem/2785 import java.io.BufferedReader;import java.io.IOException;import java.io.InputStreamReader;import java.util.ArrayList;import java.util.Collections;import java.util.StringTokenizer;public class Main { public static void main(String[] args) throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int n = Integer.parseInt.. 2024. 11. 9. 이전 1 다음 728x90 반응형