ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Common Board

How to solve 1705?
Posted by Sergey Zuev (LYC) 20 Apr 2009 23:12
Could anyone give me the algorithm? I have been trying to solve this problem for a week, but I couldn't. My problem is TLE#3. My idea is to brut-force from sqrt(N), but it doesn't work.
I would be very glad for the solution!