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 1027. D++ Again

For those, who got WA#1
Posted by Leonid (SLenik) Andrievskiy 15 Jul 2009 17:23
I suppose test #1 is like this:
...
(*my commentary*)(*
 my commentary with end of line*)
(*(*my comment with two open brackets *)
(12+13=45)
(34+56
)
...
I think the first test is checking how can you work with EndOfLine symbol. It is allowed to be in any commentary and in any arithmetic expression. But if you change EndOfLine with whitespace (' '), remember, that ' ' is not allowed in an arithmetic expression!
P.S. I replaced EndOfLine with '$' symbol and got AC.

Edited by author 15.07.2009 17:24
Re: For those, who got WA#1
Posted by Frankie 29 Nov 2011 19:21
thx I didn't really think about that :)
> replaced EndOfLine with '$' symbol
why would you do that? that's a stupid patch - you've just got lucky with your AC; it wouldn't pass if one of the expressions contained the actual '$' :)
i just processed 0x0d and 0x0a as usual expression symbols