From f38658aa390402fd3ef8b6f00f3235eb41009297 Mon Sep 17 00:00:00 2001 From: Raphael McSinyx Date: Thu, 22 Jun 2017 15:13:21 +0700 Subject: Update others/153x --- others/153x/061.py | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 others/153x/061.py (limited to 'others/153x/061.py') 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) -- cgit 1.4.1