10 lines
241 B
Python
Raw Normal View History

2023-12-01 13:35:13 +01:00
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))