[SWEA][Python] 5097 회전 그냥 나머지 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]}') practivceAlgorithm/swexpertacademy 2021.08.20