n = int(input())
people = {}
for i in range(2*n - 1):
j = input()
if j in people:
people[j] += 1
else:
people[j] = 1
for person in people.keys():
if people[person] % 2 != 0:
print(person)
break
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
26 ms |
3308 KB |
Output is correct |
2 |
Correct |
24 ms |
3308 KB |
Output is correct |
3 |
Correct |
26 ms |
3404 KB |
Output is correct |
4 |
Correct |
28 ms |
3404 KB |
Output is correct |
5 |
Correct |
29 ms |
3412 KB |
Output is correct |
6 |
Correct |
282 ms |
10812 KB |
Output is correct |
7 |
Correct |
394 ms |
12220 KB |
Output is correct |
8 |
Correct |
472 ms |
13356 KB |
Output is correct |
9 |
Correct |
490 ms |
17980 KB |
Output is correct |
10 |
Correct |
501 ms |
18108 KB |
Output is correct |