Обновить task1/task1.py
This commit is contained in:
parent
c70c68f5f7
commit
14490aa7bc
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user