Submission #161498

# Submission time Handle Problem Language Result Execution time Memory
161498 2019-11-02T17:33:34 Z boolodifjenula Elder (COCI19_elder) Python 3
29 / 50
27 ms 3408 KB
ima=input()
N=int(input())
k=1
L=[ima]
for i in range (N):
    Z1,Z2=map(str,input().split())
    if Z2==ima:
        ima=Z1
        k+=1
    L+=[Z1]
print(ima)
print(k)
# Verdict Execution time Memory Grader output
1 Partially correct 25 ms 3292 KB Output is partially correct
2 Correct 25 ms 3300 KB Output is correct
3 Partially correct 25 ms 3300 KB Output is partially correct
4 Partially correct 26 ms 3300 KB Output is partially correct
5 Partially correct 26 ms 3408 KB Output is partially correct
6 Correct 27 ms 3300 KB Output is correct
7 Partially correct 25 ms 3300 KB Output is partially correct
8 Correct 26 ms 3300 KB Output is correct
9 Partially correct 25 ms 3300 KB Output is partially correct
10 Partially correct 26 ms 3300 KB Output is partially correct