#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
char c[8][8];
int cnt = 0;
for (int i = 0; i < 8; i++) {
for (int j = 0; j < 8; j++) {
cin >> c[i][j];
}
}
for (int i = 0; i < 8; i++) {
for (int j = 0; j < 8; j++) {
if ((i + j) % 2 == 0) {
if (c[i][j] == 'F') cnt++;
}
}
}
cout << cnt;
}
'Algorithm ๐ง๐ปโ๐ป > ๋ฐฑ์ค(BOJ)' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[๋ฐฑ์ค,c++] 11022๋ฒ - A+B-8 (0) | 2021.10.26 |
---|---|
[๋ฐฑ์ค,c++] 11021๋ฒ - A+B-7 (0) | 2021.10.26 |
[๋ฐฑ์ค,c++] 11004๋ฒ - K๋ฒ์งธ ์ (0) | 2021.10.26 |
[๋ฐฑ์ค,c++] 10989๋ฒ - ์ ์ ๋ ฌํ๊ธฐ3 (0) | 2021.10.26 |
[๋ฐฑ์ค,c++] 10988๋ฒ - ํฐ๋ฆฐ๋๋กญ์ธ์ง ํ์ธํ๊ธฐ (0) | 2021.10.26 |
[๋ฐฑ์ค,c++] 10987๋ฒ - ๋ชจ์์ ๊ฐ์ (0) | 2021.10.26 |
๋๊ธ