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 :)
№ | Пользователь | Рейтинг |
---|---|---|
1 | tourist | 3993 |
2 | jiangly | 3743 |
3 | orzdevinwang | 3707 |
4 | Radewoosh | 3627 |
5 | jqdai0815 | 3620 |
6 | Benq | 3564 |
7 | Kevin114514 | 3443 |
8 | ksun48 | 3434 |
9 | Rewinding | 3397 |
10 | Um_nik | 3396 |
Страны | Города | Организации | Всё → |
№ | Пользователь | Вклад |
---|---|---|
1 | cry | 167 |
2 | Um_nik | 163 |
3 | maomao90 | 162 |
3 | atcoder_official | 162 |
5 | adamant | 159 |
6 | -is-this-fft- | 158 |
7 | awoo | 157 |
8 | TheScrasse | 154 |
9 | Dominater069 | 153 |
9 | nor | 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 :)
Название |
---|
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.