[READ-ONLY] Mirror of https://github.com/shuuji3/competitive-programming. 馃洬 Codes submitted to competitive programming platforms
aizu-online-jadge aoj atcoder hackerrank leetcode
0

Configure Feed

Select the types of activity you want to include in your feed.

1while True: 2 deck = input() 3 if deck == '-': 4 break 5 shuffle = int(input()) 6 for i in range(shuffle): 7 n = int(input()) 8 bottom = deck[:n] 9 top = deck[n:] 10 deck = top + bottom 11 print(deck)