Skip to content

Commit

Permalink
[boj] 22.03.29 13300 solved
Browse files Browse the repository at this point in the history
  • Loading branch information
JangAyeon committed Mar 29, 2022
1 parent a001629 commit 5df1e09
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions 장아연/week2/13300.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# 백준 13300 : https://www.acmicpc.net/problem/13300


N, M = map(int, input().split())
#print(N, M)
room = [[0]*2 for _ in range(6)]
# print(room)
res = 0

for _ in range(N):
s, y = map(int, input().split())
#print(" y : ", y-1, "s : ", s)
room[y-1][s] += 1
# print(room)

for i in room:
for j in i:
if j % M != 0:
res += 1
res += (j // M)


print(res)

0 comments on commit 5df1e09

Please sign in to comment.