WA in a task due to accumulate function of c++

Правка en1, от bursty, 2021-09-20 21:29:40

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?


  Rev. Язык Кто Когда Δ Комментарий
en1 Английский bursty 2021-09-20 21:29:40 503 Initial revision (published)