Please help me solve my mistake. Circle of chaos,
Basic Pseudocode:
- For all entries in array “p”, take the
minmod = minimum((pi % n))
Then, print (n - minmod)??
I passed all example test case, but got WA.
https://www.codechef.com/viewsolution/40638201
Here is my solution.