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


Getting a TLE during Submit (DEC18B::COMAS) but 0.01sec in my test Run


I am getting a TLE when I Submit my code for the Chef and Meatballs (COMAS) problem in the ongoing DEC18B contest.

However when I Run it within the Online IDE (with a grader function to replace the interactive inputs), I am getting 0.01 sec run-time for the maximum (1,000) test cases-- supposed to be the worst time. I even printed out the max. no. of queries, which is well within limits (N/2 + 4).

I am not sure what is causing the time limit to exceed the stipulated 1 sec ! Could I get some help ?

I am using Fortran (Gfortran 6.3) for my codes, which is itself a sparingly used language nowadays, but just thought if I could get some support from CodeChef on this !!

Here are my Submission Results.

Thanks in advance.

asked 16 Dec '18, 13:12

banstala's gravatar image

accept rate: 0%

Looking at your submission results, I can see that you are getting TLE(-1.000), which most probably means that you are violating some conditions, i.e asking more than the allowed number of questions for some subtasks. Also check if you are flushing the output after printing each line.


answered 16 Dec '18, 21:50

akash19jain's gravatar image

accept rate: 10%

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: 16 Dec '18, 13:12

question was seen: 183 times

last updated: 16 Dec '18, 21:50