kilimanjaro2's blog

By kilimanjaro2, history, 8 years ago, In English

Hi,

I have written a solution which runs in O(n) with n being 1e6. I am unable to understand why it gives a TLE. Any help would be much appreciated.

Link to question: http://codeforces.me/problemset/problem/265/C

Link to my code: http://hastebin.com/vususidufi.vala

Full text and comments »

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