GOODPERM -Editorial

with comments https://www.codechef.com/viewsolution/18939117

Thanks again. It was really silly of me. :). I finally was able to make a correct submission.

1 Like

Video solution: https://youtu.be/mEUVVsifKbQ