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

2★andres_vargas
44223
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: http://en.wikipedia.org/wiki/Prefix_%28computer_science%29#Prefix (NOTE: no further explanations regarding what a prefix is will be given)


ALL THE BEST

link

answered 06 May '14, 05:09

skbly7's gravatar image

2★skbly7
1.9k91724
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
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:

×847
×31
×9
×4

question asked: 06 May '14, 04:22

question was seen: 1,386 times

last updated: 06 May '14, 08:01