문제 풀이 행열 문제라고 생각하고 풀었다. 주의할 점은 String 문자열에서 특정 문자를 찾는 charAt() 사용시 큰따옴표가 아닌(" ") 작은 따옴표(' ')를 써야한다. import java.io.*; public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); // TS 개수 int num = Integer.parseInt(br.readLine()); String[] str = new String[num]; for(int i=0; i