Run ID:71925
提交时间:2024-04-27 23:00:57
m,n = map(int,input().split()) a = [ input().split() for _ in range(n)] shift = m%n b = [] for ele in a: b.append( ele[-shift:] + ele[:-shift]) for row in b: print(*row)