You are not logged in. Please login at to post your questions!


AC versus TLE

Dear admin,

Why is it the case that the same code gets accepted on one submission and is adjudged TLE on another submission??

Of course, I had tuned some parameters in my program, so that it will finish execution, just in time.

I know that different executions will take different times to execute (with minor difference between them). Is it just because of this that one submission got adjudged TLE? Or can it also be because of other server parameters, like the load at that time on the judge?

asked 08 Aug '13, 18:28

tijoforyou's gravatar image

accept rate: 15%

Yes, I also have had the same sort of experience, In the problem chmod the difference b/w my AC code and TLE code is like 2-3 operators.

(08 Aug '13, 22:54) v_akshay4★

In DELNMS, I got a solution accepted. I added a few extra lines of code, but commented all of them out. So, effectively, it is exactly the same code.

Submitted this again, only to get TLE.

(08 Aug '13, 22:57) tijoforyou2★

sth like this also happened to me today. replaced an indexed for-loop by an iterator for-loop in some code, and switched my TLE to AC. sometimes, it's just a matter of milliseconds, it seems... :)

(09 Aug '13, 22:29) cyberax ♦3★
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported
  • mathemetical formulas in Latex between $ symbol

Question tags:


question asked: 08 Aug '13, 18:28

question was seen: 2,355 times

last updated: 09 Aug '13, 22:29