반응형

브루트포스 5

1018번: 체스판 다시 칠하기(백준 C++)

1018번: 체스판 다시 칠하기 링크 코드 #include using namespace std; char case1[8][9] = { "WBWBWBWB", "BWBWBWBW", "WBWBWBWB", "BWBWBWBW", "WBWBWBWB", "BWBWBWBW", "WBWBWBWB", "BWBWBWBW", }; char case2[8][9] = { "BWBWBWBW", "WBWBWBWB", "BWBWBWBW", "WBWBWBWB", "BWBWBWBW", "WBWBWBWB", "BWBWBWBW", "WBWBWBWB", }; int main() { char chess[50][50]; int n, m; cin >> n >> m; for(int i = 0; i < n; i++){ for(int j = 0; j <..

공부/백준 2020.10.25
반응형