ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1438. Time Limit Exceeded

Some hints
Posted by Fetisov Alex [USTU Frogs] 7 Apr 2008 12:41
I had WA4 because of this: AnD <=> and, NOt <=> not, etc.
I had WA9 because of this: empty strings (only spaces) - this is not a command))
I had TLE 13 because of this: we should ignore as a command lines has only a label)
Cool problem))
Good Luck)

Edited by author 07.04.2008 12:41
Re: Some hints
Posted by bsu.mmf.team 2 Aug 2016 23:44
Well, now you don't have AC :)

I can also add that you should do some pre calculations to get access to the variables' values and labels' positions with constant time. Logarithmic complexity isn't enough to pass TL.
Re: Some hints
Posted by Jane Soboleva (SumNU) 3 Aug 2016 00:58
>Well, now you don't have AC :)

Test 14 was added by me recently, which is why~
The only hint i can give for it is that the code prevented TL #13, but did it in not exactly a proper way.
Re: Some hints
Posted by Alex Fetisov 1 Dec 2018 01:43
Took some time to rewrite that crap and retake AC :)

Still don't know what was wrong in TL 14 of the previous solution though.