Submission #161500

#TimeUsernameProblemLanguageResultExecution timeMemory
161500boolodifjenulaElder (COCI19_elder)Cpython 3
20 / 50
27 ms3368 KiB
ima=input() N=int(input()) k=0 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(0)
#Verdict Execution timeMemoryGrader output
Fetching results...