Why is O(n) solution exceeding time limit?

Revision en1, by 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 ?

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English damon2598 2018-10-26 07:46:07 281 Initial revision (published)