본문 바로가기

clohi 님의 블로그

검색하기
clohi 님의 블로그
프로필사진 clohi

  • 분류 전체보기 (29)
    • Backend (1)
      • Spring (1)
    • Algorithm (21)
      • BOJ (21)
    • 구름톤 유니브 (1)
    • CS (6)
      • 운영체제 (2)
      • 네트워크 (4)
      • 자료구조&알고리즘 (0)
Guestbook
Notice
Recent Posts
Recent Comments
Link
«   2026/06   »
일 월 화 수 목 금 토
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
Tags
  • 시뮬레이션
  • 17299
  • dfs
  • BFS
  • 브루트포스
  • 이분탐색
  • 완전 탐색
  • 완전탐색
  • 스택
  • 누적합
  • 알고리즘
  • 투 포인터
  • 10431
  • 16713
  • 24480
  • 10799
  • 14503
  • 14248
  • 3986
  • 5972
  • 백준
  • 구현
  • BOJ
  • 15900
  • 10546
  • 그리디
  • 11726
  • python
  • 8983
  • dp
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록10546 (1)

clohi 님의 블로그

[BOJ / Python] 10546 : 배부른 마라토너

https://www.acmicpc.net/problem/10546 문제코드 import sysinput = sys.stdin.readlinedict = {}n = int(input())for i in range(n): name = input().rstrip() if(name in dict): dict[name] += 1 else: dict[name] = 1for j in range(n-1): name = input().rstrip() if(name in dict): dict[name] -= 1for dict in dict.items(): if(dict[1] != 0): print(dict[0]) 풀이 - 딕셔너리 사용 ..

Algorithm/BOJ 2025. 5. 4. 23:04
이전 Prev 1 Next 다음

Blog is powered by AXZ / Designed by Tistory

티스토리툴바