From e484f7c88d941516b4500e185b9be1c331c065ab Mon Sep 17 00:00:00 2001 From: Yesen Date: Thu, 9 Nov 2023 13:24:14 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20task1.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- task1.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 task1.py diff --git a/task1.py b/task1.py new file mode 100644 index 0000000..9c6fb04 --- /dev/null +++ b/task1.py @@ -0,0 +1,10 @@ +import sys +n = int(sys.argv[1]) +m = int(sys.argv[2]) +st = 1 +while True: + print(st, end='') + st = 1+(st+m-2)%n + if st == 1: + break +print() \ No newline at end of file