티스토리 뷰
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | #include <iostream> #include <string> #include <algorithm> using namespace std; int check[10]; int main() { int count = 0; for (int i = 0; i < 8; i++) { string str; getline(cin, str); for (int j = 0; j < 8; j++) { if ((i + j) % 2 == 0 && str[j] == 'F')count++; } } cout << count << endl; return 0; } | cs |
'알고리즘' 카테고리의 다른 글
| [백준/중상] 9935번 문자열 폭발 문제(스택+문자열 처리) (0) | 2017.08.31 |
|---|---|
| [체감난이도/최하] 백준 10808번 알파벳 개수 (0) | 2017.08.28 |
| [체감난이도/하]백준 1475번 방 번호 (0) | 2017.08.28 |
| [c/c++] 널문자 0 '\0' 널문자열 NULL 의 차이 및 개념 (0) | 2017.08.27 |
| [c/c++] char배열과 문자열의 차이 (0) | 2017.08.27 |
댓글
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- javascript
- mobx
- react hooks
- return type
- es6
- state
- hydrate
- atomic design
- async
- storybook
- typescript
- react
- reactdom
- reducer
- server side rendering
- Babel
- webpack
- Next.js
- props
- useRef
- rendering scope
- useEffect
- promise
- design system
- computed
- type alias
- reflow
- await
- Action
- Polyfill
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | ||||||
| 2 | 3 | 4 | 5 | 6 | 7 | 8 |
| 9 | 10 | 11 | 12 | 13 | 14 | 15 |
| 16 | 17 | 18 | 19 | 20 | 21 | 22 |
| 23 | 24 | 25 | 26 | 27 | 28 | 29 |
| 30 | 31 |
글 보관함