amit_pandit_15's blog

By amit_pandit_15, history, 4 years ago, In English

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 :)

  • Vote: I like it
  • +1
  • Vote: I do not like it

»
4 years ago, hide # |
 
Vote: I like it -11 Vote: I do not like it

You should probably do problem which have difficulty close to your rating

  • »
    »
    4 years ago, hide # ^ |
     
    Vote: I like it +5 Vote: I do not like it

    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.

  • »
    »
    4 years ago, hide # ^ |
     
    Vote: I like it 0 Vote: I do not like it

    You should probably write comments on platforms close to your environment.

»
4 years ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Got AC by just changing the language to Cpp20(64) :(

link