체스판다시칠하기1 [백준 1018번][C++] 체스판 다시 칠하기 #include #include #include #include #include #include #include #include #include #include using namespace std; int wordCount(vector board, int startIndex_x, int startIndex_y, bool changeStartWord) { char startWord = board[startIndex_x][startIndex_y]; if (changeStartWord) { if (startWord == 'B')startWord = 'W'; else startWord = 'B'; } int changeWordNum = 0; // 바뀐 단어의 갯수 for (int p = 0; p < 8; p++.. 2023. 7. 14. 이전 1 다음