
[완전탐색]1018번 체스판 다시칠하기
알고리즘/백준
2023. 6. 7. 19:41
출처 : https://www.acmicpc.net/problem/1018 Problem Code import java.io.*; import java.util.*; public class Main { public static void main(String[] args) throws IOException { boolean[][] arr; BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st = new StringTokenizer(br.readLine(), " "); int N = Integer.parseInt(st.nextToken()); int M = Integer.parseInt(st.ne..