답안 #161500

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
161500 2019-11-02T17:36:00 Z boolodifjenula Elder (COCI19_elder) Python 3
20 / 50
27 ms 3368 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
        k+=1
    L+=[Z1]
print(ima)
print(0)
# 결과 실행 시간 메모리 Grader output
1 Partially correct 25 ms 3300 KB Output is partially correct
2 Partially correct 26 ms 3296 KB Output is partially correct
3 Partially correct 27 ms 3300 KB Output is partially correct
4 Partially correct 25 ms 3300 KB Output is partially correct
5 Partially correct 26 ms 3300 KB Output is partially correct
6 Partially correct 26 ms 3368 KB Output is partially correct
7 Partially correct 27 ms 3300 KB Output is partially correct
8 Partially correct 26 ms 3300 KB Output is partially correct
9 Partially correct 26 ms 3300 KB Output is partially correct
10 Partially correct 25 ms 3304 KB Output is partially correct