Обновить task1/task1.py

This commit is contained in:
Yesen 2023-11-09 13:21:08 +03:00
parent c70c68f5f7
commit 14490aa7bc

View File

@ -1,30 +1,10 @@
n,m = list(map(int, input().split()))
list = []
for i in range (1,n+1):
list += [i]
# print(list)
array = [list]
# list2 = [list]
# list3 = [1]
# while i [-1] in list2 != 1:
array += [1,2]
print (array)
# for i in list:
# for i in range(1, m+1):
# print (i)
# while
# for i in list:
# if list[-1]
# print (list2)
# print (list[-1]
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()