Please read the new rule regarding the restriction on the use of AI tools. ×

heisenberg_5's blog

By heisenberg_5, history, 9 months ago, In English

I was doing ITMO pilot course segment tree problems. In the problem LINK TO QUESTION, I am getting wrong answer on test number 72. Kindly help me out to resolve the issue.

Code

Thanks in advance. :)

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

»
9 months ago, # |
  Vote: I like it +6 Vote: I do not like it

prefix sum, suffix sum and max sum should be long long since it can exceed integer limit