Hello everyone.
I have been trying to solve 455D - Serega and Fun for a long while now and I really need some help.
I can't figure out what's wrong in my solution could someone please help me or at least give a test case where my solution will fail.
Note: I'm using SQ-RT decomposition to solve this problem and when I change the value of SQ
I get WA on a different test each time.
Here's my submission : 27521539
Please help I going crazy because of this problem.
Thank you for reading.