Problem : https://www.codechef.com/problems/GDOG
I don’t have clarity in the above mentioned problem statement. I also gone through some correct submissions but I didn’t found the way problem was handled. So anyone willing to help can give clarity for my below approach.
n-((n/k)*k) or (n%k) (why this expression gives Wrong Answer)