Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
Tags
- coding
- Stack
- 컴퓨터공학과
- 브루트포스
- 백준
- 너비우선탐색
- 컴공과
- 정석학술정보관
- 오퍼레이팅시스템
- Operating System
- 개발
- 북리뷰
- 정석
- 문제풀이
- 컴공
- 구현
- OS
- DP
- 오에스
- Computer science
- c++
- vector
- 알고리즘
- 자료구조
- 스택
- 그래프
- 코딩
- bfs
- cs
- 코테
Archives
- Today
- Total
목록datastructure (2)
Little Jay
[C++] 백준 1302번 - 베스트셀러
map을 활용한 기본적인 문제 #include #include using namespace std; int n; map m; int main() { ios::sync_with_stdio(false); cin.tie(0); cout.tie(0); cin >> n; while (n--) { string s; cin >> s; ++(m[s]); } pair p; int max = 0; for (auto s : m) { if (s.second > max) { max = s.second; p = s; } } cout
알고리즘/BOJ
2022. 1. 11. 15:19