Skip to content

Commit

Permalink
22.19.13
Browse files Browse the repository at this point in the history
  • Loading branch information
delena0702 authored Sep 13, 2022
1 parent ea60a10 commit ce205cd
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions BAEKJOON/1475_방_번호.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
from collections import defaultdict

N, cnt = input(), defaultdict(int)
for ch in N:
cnt[int(ch)] += 1
cnt[6] = cnt[9] = (cnt[6] + cnt[9] + 1) // 2
print(max(cnt.values()))

0 comments on commit ce205cd

Please sign in to comment.