|  | 
|  | 
| back to board | Why TLE(time limited exceed)?(For help) 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) Maybe your program do a lot of iterations? You can skip some iterations after you found an user...
 1<=n<=100 :)
 | 
 | 
|