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

Am I right?
Posted by Baz 15 Mar 2011 15:59
Am I right, that expression ((**)*)(**)*) can be understood in two different ways:
({}*){*)} and
({*)*)(*}*) where {} are comments?
Re: Am I right?
Posted by Baz 15 Mar 2011 22:55
FUCK! My friend explained me that a comment can not contain "*)", but it was not mentioned in the statement!!! Now I got AC. Leonid Volkov and Alexey Lysenko, I hate you!
Re: Am I right?
Posted by IgorKoval(from Pskov) 16 Sep 2011 23:56
((**)*)(**)*) Answer is NO! Because it's ({}*)){}*), where {} is comment, {} := (**)
((**)*) answer is YES
(*) answer is NO
Re: Am I right?
Posted by Orlangur 19 Sep 2011 16:25
A comment is always opened by a pair of symbols "(*" and is closed by a pair of symbols "*)"
->
A comment is always opened by a pair of symbols "(*"
A comment is always closed by a pair of symbols "*)"

Problem statement is absolutely clear.