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

is there guaranteed to have...(+)
Posted by Safe Bird 27 Feb 2006 14:34
is there guaranteed to have at least one space between:

if_<varnum>_==_<varnum>_goto_<label>
<variable>_=_<varnum>_*_<varnum>
("_" denote at least one space)

?
how about brackets "("")"?
Posted by Safe Bird 27 Feb 2006 14:44
or maybe there can exist:

var1 = var2 - -7

?
it's interesting that 1e8 and 1e8+1 both WA on 7...
Posted by Safe Bird 27 Feb 2006 14:52
Re: how about brackets "("")"?
Posted by Ivankov Dmitry 27 Feb 2006 15:55
There are no brackets.
In current tests:
- there are no variables with names "end", "goto",...
- I've just realized that my sol. don't work on "y=x--1", only on "y=x - -1"
- spaces are everywhere, except maybe before and after '+', '=', ':', ...
I think case 11 is WRONG(+)
Posted by Safe Bird 27 Feb 2006 15:59
without an "END" command....
ACed. thanx
Posted by Safe Bird 27 Feb 2006 15:59
Re: I think case 11 is WRONG(+)
Posted by Ivankov Dmitry 27 Feb 2006 16:12
I don't think so, my sol. never executes my own "END", added after the last line (in that case "exit(1)" would happen).
Spaces are everywhere (-)
Posted by Vladimir Yakovlev (USU) 27 Feb 2006 16:12


Edited by author 27.02.2006 16:12