If you have time, also tell us why you chose the problems you chose.
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
Need idea: Tried to solve it using bitmask + segment tree, but getting WA. Any idea about how to solve this problem efficiently?
After publishing an interview with Keshav Dhandhania we have decided to continue this project and present you other successful Spoj users, who can share their experience and all wisdom gained during their struggle with Spoj problems. Today we present you Ivan Katanić a finalist in International Olympiad in Informatics a member of Croatian national team in computer contests and a long-time Spoj user with a #11th place in a world rank and almost 1000 solved problems.