Rating changes for last rounds are temporarily rolled back. They will be returned soon. ×

iamskp's blog

By iamskp, history, 4 years ago, In English

I am doing this problem. Can someone please tell me why i am getting tle verdict. My submission is in python. My submission : https://codeforces.com/contest/1283/submission/88064624

  • Vote: I like it
  • -1
  • Vote: I do not like it

| Write comment?
»
4 years ago, # |
  Vote: I like it 0 Vote: I do not like it

Removing from index $$$i$$$ of a list should be $$$O(n - i)$$$, so repeatedly removing from the beginning — middle of the list will cause TLE.