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

[백준/파이썬] 10874번 이교수님의 시험

by 현장 2022. 8. 10.

-Code

answer = [(i - 1) % 5 + 1 for i in range(1, 11)]
result = []
for i in range(int(input())):
    student = list(map(int, input().split()))
    if answer == student:
        result.append(i + 1)
for r in result:
    print(r)