티스토리 뷰
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | #include <iostream> #include <string> #include <algorithm> using namespace std; int c[26]; int main() { string str; getline(cin, str); for (int i = 0; i < str.size(); i++) c[str[i] - 'a']++; for (int i = 0; i < 26; i++) cout << c[i] << " "; return 0; } | cs |
'알고리즘' 카테고리의 다른 글
[백준/중하] 11053번 가장 긴 증가하는 부분 수열 (LIS,DP,다이나믹 프로그래밍) (1) | 2017.08.31 |
---|---|
[백준/중상] 9935번 문자열 폭발 문제(스택+문자열 처리) (0) | 2017.08.31 |
[체감난이도/최하] 백준 1100번 하얀 칸 (0) | 2017.08.28 |
[체감난이도/하]백준 1475번 방 번호 (0) | 2017.08.28 |
[c/c++] 널문자 0 '\0' 널문자열 NULL 의 차이 및 개념 (0) | 2017.08.27 |
댓글
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- react hooks
- props
- Babel
- es6
- design system
- typescript
- webpack
- useEffect
- server side rendering
- reflow
- mobx
- await
- atomic design
- useRef
- react
- type alias
- hydrate
- Action
- reactdom
- computed
- promise
- reducer
- storybook
- Next.js
- javascript
- rendering scope
- return type
- async
- state
- 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 |
글 보관함