Please subscribe to the official Codeforces channel in Telegram via the link ×

bursty's blog

By bursty, history, 2 months ago, In English

In problem C of Educational Codeforces Round 114 I was using accumulate function to calculate sum of the elements in an array which IDK why messed up my solution and giving the sum of array larger than actual which eventually caused WA and when the sum calculted in o(n) it accepted the submission

here is accepted submission 129428522 here is WA submission 129427890

is there any limit on using accumulate or anything else?

Read more »

  • Vote: I like it
  • 0
  • Vote: I do not like it