Добавить task1.py

This commit is contained in:
Yesen 2023-11-09 13:24:14 +03:00
parent 8969faaa73
commit e484f7c88d

10
task1.py Normal file
View File

@ -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()