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


:'( Why I'm getting TLE in the problem "Compilers and parsers"??

I tried so many tricks to get AC, for example: check if the first char is a '<' (else the answer is 0), another is: check if the string ends in a substr of type "<<<<" if it is I'm going to erasing this char's...This tricks not works, because I'm getting Time Limit Exeded...please I need help!!!

asked 06 May '14, 04:22

andres_vargas's gravatar image

accept rate: 0%

edited 06 May '14, 04:25

See, almost 1500+ got AC, and believe me it is not a tough question.
Disucssion of codechef questions, and other such practices during ongoing contest is not valid.

So, I would suggest you try hard, think of more corner cases, and try to get AC. This is programming all about, think hard..!
Hoping you would get succeed..

Moreover a comment from PROBLEM PAGE ONLY which might help you too:
I shall not answer ANY question posted here, but, I can give some clarifications which might be a bit too generous. You can read the definition of what a prefix is here: (NOTE: no further explanations regarding what a prefix is will be given)



answered 06 May '14, 05:09

skbly7's gravatar image

accept rate: 8%

Yeah, you are right, thanks for your advice I still coding and thinking to get AC :D

(06 May '14, 08:01) andres_vargas2★
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: 06 May '14, 04:22

question was seen: 1,386 times

last updated: 06 May '14, 08:01