Skip to content

Commit a11b0a1

Browse files
committed
[#5] Feat: Add 나머지
1 parent aeccb2b commit a11b0a1

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

3052.py

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# 나머지
2+
3+
answer = []
4+
5+
for _ in range(10):
6+
rest = int(input()) % 42
7+
try:
8+
answer.index(rest)
9+
except ValueError:
10+
answer.append(rest)
11+
12+
print(len(answer))

0 commit comments

Comments
 (0)