[C++/Map] 백준 9375 패션왕 신혜빈
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 #include #include #include #include using namespace std; int main() { int t; cin >> t; string cloth, kind; while (t--) { int n; cin >> n; map m; // 옷 종류와 종류별 수를 담는 map while (n--) { cin >> cloth >> kind; m[kind]++; // 옷 종류별 수 갱신 } long long res = 1; for(auto it = m.begin(); it != m.end(); it++){ res *= it->second + 1; ..
알고리즘/백준
2020. 1. 29. 13:12
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- hackerrank
- dovecot
- 메일서버
- git
- 라즈베리파이
- 11503
- BFS
- c++
- 자바
- mysql
- 블루투스
- 워드프레스
- hc-06
- 라즈비안
- java
- 리눅스
- ESP8266
- 아두이노
- 합승 택시 요금
- 프로그래머스
- 키 순서
- 집배원 한상덕
- 구슬 탈출2
- FTP
- 2981
- the pads
- DP
- 스티커모으기2
- 백준
- dht11
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함