I tried this question alot but still getting WA.can someone tell if my logic is incorrect or I am missing something here!
https://www.codechef.com/viewsolution/14415120
I tried this question alot but still getting WA.can someone tell if my logic is incorrect or I am missing something here!
https://www.codechef.com/viewsolution/14415120