PerfectoZ's blog

By PerfectoZ, history, 3 years ago, In English

Can someone help me with how I can remove TLE in this python code : 139519137 This is the same Algorithm but in C++ : 139524288 I guess O(nlogn) shouldn't be a TLE in python for n=1e5 Here is the Problem 1617C - Paprika and Permutation Thanks

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

| Write comment?
»
3 years ago, # |
  Vote: I like it +1 Vote: I do not like it

Bruh, check your python submission link, it's in C++. (though I didn't downvoted)

Also, it is a bit common for Python code to TLE when the time limit is very tight, which usually happens on higher problems of Div2 (like D, E ...). But, it's rare to happen on C.