Submission #147153

#TimeUsernameProblemLanguageResultExecution timeMemory
147153jh05013Elder (COCI19_elder)Cpython 3
50 / 50
26 ms3556 KiB
wand = input() n = int(input()) owner = {wand} for i in range(n): w, l = input().split() if l == wand: wand = w owner.add(wand) print(wand) print(len(owner))
#Verdict Execution timeMemoryGrader output
Fetching results...