complete 1158.py 11025.py 11866.py
This commit is contained in:
9
zeta_python/11025.py
Normal file
9
zeta_python/11025.py
Normal file
@@ -0,0 +1,9 @@
|
||||
def solve(N, K):
|
||||
ret = 1
|
||||
for i in range(2, N + 1):
|
||||
ret = (ret + K - 1) % i + 1
|
||||
return ret
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
print(solve(*map(int, input().split())))
|
||||
Reference in New Issue
Block a user