Need Help :(
Can anyone give me some hints for this problem? http://lightoj.com/volume_showproblem.php?problem=1127