July Challenge Div 2 Question 2(Minimum and Maximum )

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-https://www.codechef.com/viewsolution/25823298

k%n instead of n%k in line 4.

1 Like