You are viewing a single comment's thread. Return to all comments →
Yeah, it does
a,arr = [map(int,raw_input().split()) for _ in range(2)] for _ in range(a[2]): print (arr[-(a[1]%a[0]):] + arr[:-(a[1]%a[0])])[input()]
Circular Array Rotation
You are viewing a single comment's thread. Return to all comments →
Yeah, it does
a,arr = [map(int,raw_input().split()) for _ in range(2)] for _ in range(a[2]): print (arr[-(a[1]%a[0]):] + arr[:-(a[1]%a[0])])[input()]