To solve this question I followed Editorialist solution but used python instead cpp. On submission it giving wrong result. I could not find anything wrong with the code. Can anyone help me find what’s wrong with this code-CodeChef: Practical coding for everyone
k%n instead of n%k in line 4.
1 Like