AtCoder Beginner Contest 421
·
알고리즘/CP
점수: 300등수: 7022 C - Alternatedimport java.io.*;import java.util.*;public class Main { public static void main(String[] args) throws IOException { var in = new BufferedReader(new InputStreamReader(System.in)); var out = new PrintWriter(System.out); int N = Integer.parseInt(in.readLine()); String S = in.readLine(); // 'A'의 위치를 저장할 리스트 List posA = new A..