์ฒด์คํ ๋ค์ ์น ํ๊ธฐ
-
[BaekJoon] 1018๋ฒ : ์ฒด์คํ ๋ค์ ์น ํ๊ธฐSW Test/BaekJoon 2020. 12. 13. 20:43
์ด ๊ธ์ c++๋ก ํ์ด๋ฅผ ์์ฑํ์์ต๋๋ค. ๋ฌธ์ ์์ ํ์ด #include #include using namespace std; string wb[8]={"WBWBWBWB","BWBWBWBW","WBWBWBWB","BWBWBWBW", "WBWBWBWB","BWBWBWBW","WBWBWBWB","BWBWBWBW"}; string vec[50]; int getmin(string temp[8]){ int cnt=0; for(int i=0;in>>m; for(int i=0;i>str; vec[i] = str; } for(int i=0;i