Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- N=int(input())
- k=int(input())
- if 1<=N<=100 and 1<=k<=10*9:
- circle=[[i+1] for i in range(1, N, k)]
- if circle[i]==circle[k]:
- del circle[k]
- [k+1]==[1]
- if len(circle)==1:
- print(circle)
Advertisement
Add Comment
Please, Sign In to add comment