Submission #161501

# Submission time Handle Problem Language Result Execution time Memory
161501 2019-11-02T17:38:05 Z boolodifjenula Elder (COCI19_elder) Python 3
Compilation error
0 ms 0 KB
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
        if bool(ima in L)==0:
            k+=1
    		L+=[k]
print(ima)
print(len(L))

Compilation message

Sorry: TabError: inconsistent use of tabs and spaces in indentation (elder.py, line 11)