I submitted this to 527C: h[submission:167938194]
I'm sure that it's O(nlogn) ($$$n \leq 2 \times 10^5$$$), and I TLEed on 7.
Please help me!
# | User | Rating |
---|---|---|
1 | jiangly | 4039 |
2 | tourist | 3841 |
3 | jqdai0815 | 3682 |
4 | ksun48 | 3590 |
5 | ecnerwala | 3542 |
6 | Benq | 3535 |
7 | orzdevinwang | 3526 |
8 | gamegame | 3477 |
9 | heuristica | 3357 |
10 | Radewoosh | 3355 |
# | User | Contrib. |
---|---|---|
1 | cry | 168 |
2 | -is-this-fft- | 165 |
3 | atcoder_official | 160 |
3 | Um_nik | 160 |
5 | djm03178 | 157 |
6 | Dominater069 | 156 |
7 | adamant | 153 |
8 | luogu_official | 152 |
9 | awoo | 151 |
10 | TheScrasse | 147 |
Name |
---|
I think your solution took more time than what was allowed for the problem. That is why it is showing TLE.
It's not a TLE.
Your code return Exit Code 134. You have some troubles with pointers on this test.
Try to debug it and check what does your multisets returns to you.