add to gothib
This commit is contained in:
commit
523f45b46a
28 changed files with 419 additions and 0 deletions
13
snowflakes.py
Normal file
13
snowflakes.py
Normal file
|
@ -0,0 +1,13 @@
|
|||
num = int(input())
|
||||
|
||||
snowflakes = {}
|
||||
|
||||
for i in range(num):
|
||||
snowflake = sum(int(x) for x in input().split(" "))
|
||||
if snowflake in snowflakes:
|
||||
print("Twin snowflakes found.")
|
||||
quit()
|
||||
|
||||
snowflakes[snowflake] = True
|
||||
|
||||
print("No two snowflakes are alike.")
|
Loading…
Add table
Add a link
Reference in a new issue