본문 바로가기
Beakjoon&프로그래머스/파이썬

[백준/파이썬]13118번 뉴턴과 사과

by 현장 2021. 4. 28.

-코드

p = list(map(int, input().split()))
x, y, r = map(int, input().split())
r = 0
for i in range(4):
    if x == p[i]:
        r = i + 1
        break
print(r)