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


What Does Negative TLE Means?

I am doing codechef Manhattan Rectangle problem and after submitting my solution I got TLE of (-1.0000 sec ??).I have seen this time limit first time.

Can anyone tell me what does that mean?

asked 03 Feb, 23:38

crackercode's gravatar image

accept rate: 0%

edited 05 Feb, 12:22

It is an error from your side of the interaction.

"Then, you should read a line containing a single integer. If this integer is non-negative, it denotes the answer to your query. Otherwise, it means that you exceeded the limit on the number of queries, the coordinates you printed are invalid or some other error occured."

Also make sure to flush your outputs as @taran_1407 has mentioned here.

Hope this helps :)


answered 04 Feb, 00:24

akashbhalotia's gravatar image

accept rate: 10%

In interactive problems, if something goes wrong, then program may give any verdict if you don't exit. This is common behaviour in interactive problems. It just means that you are either not reading grader response well or you are not giving output as specified.
To get rid of this, read the statement and interaction carefully. Like in FEB long problem MANRECT, you may forget to read response after you print the answer for a test case. You must read an integer after printing output to a test case, 1 means your answer was correct or negative integer means your answer was wrong. In the case of wrong answer you should terminate the program to get WA verdict. Otherwise you may get any verdict.


answered 05 Feb, 22:28

vichitr's gravatar image

accept rate: 11%

edited 05 Feb, 22:29

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: 03 Feb, 23:38

question was seen: 371 times

last updated: 05 Feb, 22:29