| # | User | Rating |
|---|---|---|
| 1 | Benq | 3792 |
| 2 | VivaciousAubergine | 3647 |
| 3 | jiangly | 3631 |
| 4 | Kevin114514 | 3574 |
| 5 | maroonrk | 3521 |
| 6 | strapple | 3515 |
| 7 | Radewoosh | 3461 |
| 8 | tourist | 3428 |
| 9 | turmax | 3378 |
| 10 | Um_nik | 3376 |
| # | User | Contrib. |
|---|---|---|
| 1 | Qingyu | 161 |
| 2 | adamant | 148 |
| 3 | Um_nik | 146 |
| 4 | Dominater069 | 143 |
| 5 | errorgorn | 140 |
| 6 | cry | 138 |
| 7 | Proof_by_QED | 136 |
| 8 | YuukiS | 135 |
| 9 | chromate00 | 134 |
| 10 | soullless | 133 |
|
+14
maybe you should write |
|
+7
valid crashout |
|
+7
Peak extension fr |
|
0
Can i join:P |
|
0
My submission 325661310 might be valid with this problem, cause this code AC with the same problem with the same constrain(1793C - Dora and Search) |
|
0
I think the priority queue not gonna make it O(n) casuse on 1 operation, an priority queue takes O(logn) to compute. The valid O(n) solution might be using 4 monotonic stack for next/previous min/max(precompute in O(n) and remove element from both end like usual. But it's an absurd amount of coding for a problem with constrain n < 2e5. Maybe if is was limit on number of steps you can take, or the time constrain need strictly O(kn) with k <= 10 and n is large enough. I'll use this method. Personaly, i'll stick with using multi_set because it will make my code shorter, easier to code and understand. |
|
0
My personal though process:
And i also think that this could also work with an subsequence from the array, cause:
So it's still a bad thing to remove element from middle of the subsequence. I think this will work, correct me if i'm wrong pls:D |
|
0
I think you could use a multi_set to store all the value from the array, and remove either value from both end if is the min or max val from the subarray/subsequence. Repeat until it's valid. The time complexity is O(nlogn):D |
|
-10
Thanks bro, u too:D |
|
0
Good luck have fun guys:D |
|
-8
i_love_huyhau6a2 will win IOI 2025!!! |
|
0
glhf guys :Đ ++ratings |
| Name |
|---|


