목록2024/07/23 (1)
Just Do IT!

내가 푼 코드.사실 머리가 안돌아가서(?)입력받는 부분과 알파벳 배열을 넣고 for문 돌리는 것까지 하고 다른 분들의 코드를 참고했다. import java.io.BufferedReader;import java.io.InputStreamReader;public class BOJ_1316 { public static void main(String[] args) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int N = Integer.parseInt(br.readLine()); int count = 0; for (int i = 0; i 연속된 문자이므로 그냥 계속 반복문을 진행 ..
코딩테스트 준비/백준
2024. 7. 23. 09:44