Moved kattis from Uni repo
This commit is contained in:
13
kattis/problems/old/every/1.in
Normal file
13
kattis/problems/old/every/1.in
Normal file
@ -0,0 +1,13 @@
|
||||
2
|
||||
7
|
||||
saskatoon
|
||||
toronto
|
||||
winnipeg
|
||||
toronto
|
||||
vancouver
|
||||
saskatoon
|
||||
toronto
|
||||
3
|
||||
edmonton
|
||||
edmonton
|
||||
edmonton
|
10
kattis/problems/old/every/main.py
Normal file
10
kattis/problems/old/every/main.py
Normal file
@ -0,0 +1,10 @@
|
||||
|
||||
test_cases = int(input())
|
||||
for case in range(test_cases):
|
||||
destinations = []
|
||||
trips = int(input())
|
||||
for t in range(trips):
|
||||
trip = str(input())
|
||||
if trip not in destinations:
|
||||
destinations.append(trip)
|
||||
print(len(destinations))
|
Reference in New Issue
Block a user