karolinagergert

Untitled

Jul 17th, 2019
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. N=int(input())
  2. k=int(input())
  3. if 1<=N<=100 and 1<=k<=10*9:
  4. circle=[[i+1] for i in range(1, N, k)]
  5. if circle[i]==circle[k]:
  6. del circle[k]
  7. [k+1]==[1]
  8. if len(circle)==1:
  9. print(circle)
Advertisement
Add Comment
Please, Sign In to add comment