practivceAlgorithm/swexpertacademy
[SWEA][Python] 5097 회전
findTheValue
2021. 8. 20. 02:10
그냥 나머지
for test in range(1,int(input())+1):
N, M = map(int, input().split())
arr = list(map(int, input().split()))
print(f'#{test} {arr[M%N]}')