Submission #801867

#TimeUsernameProblemLanguageResultExecution timeMemory
801867Trisanu_DasElder (COCI19_elder)Cpython 3
50 / 50
14 ms2828 KiB
w = input() n = int(input()) o = {w} for i in range(n): ww, l = input().split() if l == w: w = ww o.add(w) print(w) print(len(o))
#Verdict Execution timeMemoryGrader output
Fetching results...