about summary refs log tree commit diff
path: root/others/153x/061.py
diff options
context:
space:
mode:
authorRaphael McSinyx <vn.mcsinyx@gmail.com>2017-06-22 15:13:21 +0700
committerRaphael McSinyx <vn.mcsinyx@gmail.com>2017-06-22 15:13:21 +0700
commitf38658aa390402fd3ef8b6f00f3235eb41009297 (patch)
tree2d72bd696bcfd0c2c9fe179505162687b91c8f28 /others/153x/061.py
parent4ac65940e064c5b587699549a0c7277d2dd733a8 (diff)
downloadcp-f38658aa390402fd3ef8b6f00f3235eb41009297.tar.gz
Update others/153x
Diffstat (limited to 'others/153x/061.py')
-rwxr-xr-xothers/153x/061.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/others/153x/061.py b/others/153x/061.py
new file mode 100755
index 0000000..1535ff9
--- /dev/null
+++ b/others/153x/061.py
@@ -0,0 +1,7 @@
+#!/usr/bin/env python3
+from collections import deque
+with open('CLIST.INP') as fi, open('CLIST.OUT', 'w') as fo:
+    n, k, l = map(int, fi.readline().split())
+    d = deque(map(int, fi.readline().split()))
+    d.rotate(int(fi.read()) * (l - k) % n)
+    print(*d, file=fo)