본문 바로가기 메뉴 바로가기

개발개발

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

개발개발

검색하기 폼
  • 분류 전체보기 (121)
    • 알고리즘 (73)
      • 백준 (38)
      • 프로그래머스 (27)
      • 해커랭크 (4)
    • 데이터베이스 (15)
      • MySQL (12)
    • 웹 프로그래밍 (5)
      • Spring (4)
    • 라즈베리 파이 (18)
      • 서버 (13)
      • 리눅스 명령어 (3)
    • 아두이노 (3)
    • Tips (5)
      • Github 사용법 (2)
    • 기록 (0)
      • 취준 (0)
  • 방명록

9375 (1)
[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
이전 1 다음
이전 다음
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
TAG
  • FTP
  • 집배원 한상덕
  • 11503
  • 스티커모으기2
  • c++
  • 블루투스
  • git
  • BFS
  • 백준
  • 라즈비안
  • 라즈베리파이
  • 2981
  • mysql
  • 아두이노
  • 자바
  • hc-06
  • dovecot
  • ESP8266
  • java
  • 키 순서
  • 리눅스
  • DP
  • dht11
  • hackerrank
  • 합승 택시 요금
  • 구슬 탈출2
  • 워드프레스
  • 메일서버
  • 프로그래머스
  • the pads
more
«   2025/05   »
일 월 화 수 목 금 토
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
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바