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

Baz Am I right? [3] // Problem 1027. D++ Again 15 Mar 2011 15:59
Am I right, that expression ((**)*)(**)*) can be understood in two different ways:
({}*){*)} and
({*)*)(*}*) where {} are comments?
Baz Re: Am I right? [1] // Problem 1027. D++ Again 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!
Orlangur Re: Am I right? // Problem 1027. D++ Again 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.
IgorKoval(from Pskov) Re: Am I right? // Problem 1027. D++ Again 16 Sep 2011 23:56
((**)*)(**)*) Answer is NO! Because it's ({}*)){}*), where {} is comment, {} := (**)
((**)*) answer is YES
(*) answer is NO