|  | 
|  | 
| back to board | How to solve? I can suggest only bruteforce.
 Edited by author 08.05.2009 16:12
Re: How to solve? If you can suggest - then try! =)Re: How to solve? I think, it will be TLE.Re: How to solve? Sometimes in sportcoding it's better not to think =)Re: How to solve? This problem has elegant solution which is very easy to code. Try to find it.Re: How to solve? Thank you very much.I have found the solution.
 This problem is beautiful.
 | 
 | 
|