Hello everyone , I am getting time limit exceed in 1263E - Editor , I am using segment tree to find maximum prefix sum and minimum prefix sum , 158978146 is my submission to the problem.
Please help me in debugging my code.
Thanks in Advance :)
# | User | Rating |
---|---|---|
1 | tourist | 4009 |
2 | jiangly | 3821 |
3 | Benq | 3736 |
4 | Radewoosh | 3631 |
5 | jqdai0815 | 3620 |
6 | orzdevinwang | 3529 |
7 | ecnerwala | 3446 |
8 | Um_nik | 3396 |
9 | ksun48 | 3388 |
10 | gamegame | 3386 |
# | User | Contrib. |
---|---|---|
1 | cry | 164 |
1 | maomao90 | 164 |
3 | Um_nik | 163 |
4 | atcoder_official | 161 |
5 | -is-this-fft- | 158 |
6 | awoo | 157 |
7 | adamant | 156 |
8 | TheScrasse | 154 |
8 | nor | 154 |
10 | Dominater069 | 153 |
Hello everyone , I am getting time limit exceed in 1263E - Editor , I am using segment tree to find maximum prefix sum and minimum prefix sum , 158978146 is my submission to the problem.
Please help me in debugging my code.
Thanks in Advance :)
Name |
---|
You should probably do problem which have difficulty close to your rating
Yes I agree to your statement , but I was trying to do some segment tree problems and one of my friend gave me this question to try , I didn't saw rating of problem before solving because I had my rating and tags for unsolved problems hidden.
You should probably write comments on platforms close to your environment.
Got AC by just changing the language to Cpp20(64) :(
link
yes, it worked changing language to cpp20.
Thankyou for helping me out. :)
can you suggest any reason for this because I have no idea why it was not working in cpp17.
Maybe it is because you use ll(int64) everywhere.
Ohh yes, you are right changing 64 bit integer to 32 bit integer is working in cpp17.
Thanks.