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

Discussion of Problem 1120. Sum of Sequential Numbers

AC~~~happy~~
Posted by zxy_snow 1 Jun 2011 12:01
I used some methods, got TLE || WA ...T T ...

You can enumerate P .

Think carefully and you will get a O(sqrt(n)) solution.
Re: AC~~~happy~~
Posted by Najmaddin Akhundov 14 Dec 2014 13:28
Thank you "zxy_snow"
Re: AC~~~happy~~
Posted by bstu_student 7 Aug 2019 04:27
Spend some time for enum, cause i don't wanna to calculate in float variables. So fun!)