Can someone please give me some hints to solve this problem. Thanks in Advance!!
This problem is from ACM Southwestern European Regional Contest, Paris 2003
If you have time, also tell us why you chose the problems you chose.
This is a beautiful problem that I solved today. The idea is very interesting and the implementation can be a little difficult.