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 2002. Test Task

Why TLE(time limited exceed)?(For help)
Posted by chenxingbei2 9 Nov 2013 15:37
Is n no more than 100?
The time complexity of my program is O(n*n), why does it take so much time to run my program?(0.531s)
Do we need O(n*log(n)) to solve this problem?


Re: Why TLE(time limited exceed)?(For help)
Posted by Dron-elektron 9 Nov 2013 22:01
Maybe your program do a lot of iterations? You can skip some iterations after you found an user...

1<=n<=100 :)