I need help with this problem
Hello Codeforces!!
I saw this problem days ago and I have tried to solve it since then but I have not been successful. Help me please
This is the problem
ICPC NA North Central and South Division