# | User | Rating |
---|---|---|
1 | tourist | 4009 |
2 | jiangly | 3823 |
3 | Benq | 3738 |
4 | Radewoosh | 3633 |
5 | jqdai0815 | 3620 |
6 | orzdevinwang | 3529 |
7 | ecnerwala | 3446 |
8 | Um_nik | 3396 |
9 | ksun48 | 3390 |
10 | gamegame | 3386 |
# | User | Contrib. |
---|---|---|
1 | cry | 166 |
2 | maomao90 | 163 |
2 | Um_nik | 163 |
4 | atcoder_official | 161 |
5 | adamant | 160 |
6 | -is-this-fft- | 158 |
7 | awoo | 157 |
8 | TheScrasse | 154 |
9 | nor | 153 |
9 | Dominater069 | 153 |
Name |
---|
I think the time complexity is maxSum*n which would be 2000*100*100 =2*10^7 which will pass in the given time constraints.
maxSm*n is the time complexity for the partition function and an additional *n for the iteration I guess.
Try this test
100
1428 448 732 1864 1944 60 788 536 1924 1468 1544 1220 104 40 1872 1360 920 1492 1972 1340 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2 2
Yes,recevied a TLE verdict.
Can someone try to uphack my solution with this? I feel like Mastermind222's solution got hacked because he's passing the vector without reference and hence your sys tests time is 1.6 secs on the other hand, mine is 0.9 secs. I feel like mine will still pass with this testcase
Here is the proof
I think that is the case. I get 1.6 secs on my desktop with this test case.
Passed in 1263ms on that test case.
Yup I passed with 1.6 secs, I guess passing the vector without reference is the problem
You are doing approx 2000*100*100*100 ≈ 10⁹ operations, which is on the edge.
Yes it should TLE. Weak test cases.A lot of people have done the same.
Exactly!!!!