Why is O(n) solution exceeding time limit?

Правка en1, от damon2598, 2018-10-26 07:46:07

in the educational Codeforces Round 53 , problem B (1073B) my solution gives TLE ,but I don't think it should. My submission is : http://codeforces.me/contest/1073/submission/44858358 can someone suggest the bugs in my code ,if any ?

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский damon2598 2018-10-26 07:46:07 281 Initial revision (published)