You are viewing a single comment's thread. Return to all comments →
if k != 0 and n % k != 0: print(-1) Make it n % 2*k != 0
Seems like cookies are disabled on this browser, please enable them to open this website
Absolute Permutation
You are viewing a single comment's thread. Return to all comments →
if k != 0 and n % k != 0: print(-1) Make it n % 2*k != 0