You are not logged in. Please login at www.codechef.com 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

3★crackercode
156
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 :)

link

answered 04 Feb, 00:24

akashbhalotia's gravatar image

4★akashbhalotia
68112
accept rate: 14%

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.

link

answered 05 Feb, 22:28

vichitr's gravatar image

5★vichitr
2555
accept rate: 11%

edited 05 Feb, 22:29

toggle preview
Preview

Follow this question

By Email:

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

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "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:

×1,236
×720

question asked: 03 Feb, 23:38

question was seen: 301 times

last updated: 05 Feb, 22:29