Submission #241149

# Submission time Handle Problem Language Result Execution time Memory
241149 2020-06-23T06:28:51 Z brau13 Utrka (COCI14_utrka) Python 3
0 / 80
41 ms 3408 KB
n1 = int(input())

noms = []

if 1 <= n1 <= 1000:
    for i in range(n1):
        nom = input().lower()
        noms.append(nom)

    for i in range(n1 - 1):
        wins = input()
        if noms.count(wins) >= 1:
            noms.remove(wins)
        else:
            noms.append(wins)

    print(noms[0])

else:
    exit()
# Verdict Execution time Memory Grader output
1 Correct 24 ms 3308 KB Output is correct
2 Correct 24 ms 3300 KB Output is correct
3 Correct 30 ms 3300 KB Output is correct
4 Correct 41 ms 3400 KB Output is correct
5 Correct 39 ms 3400 KB Output is correct
6 Incorrect 23 ms 3408 KB Output isn't correct
7 Halted 0 ms 0 KB -