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

Advice and test
Posted by Nikolay Sayfuranov 6 Jun 2003 23:54
I get AC from the second attempt, and
if you want to get AC allways check that input:
(*)*)
Output must be NO
And:
(*)
Output must be YES
I hope this is helps you!
Sorry, I was mistaken :-)
Posted by Nikolay Sayfuranov 7 Jun 2003 00:01
The amendment: for the input (*) you must have output NO, because
there is no closing comments!!! All before that mystake is true.
What do u mean??
Posted by Ural_Happy New Year! 11 Jun 2003 15:42
what do you mean that?
why
(*)*) should be no??
and if the input is:
(*(**)
(**)*)
what's the correct output??
YOU ARE WRONG!!
Posted by baddiex 29 Aug 2003 12:35
Sorry to say , the example you gave,
example: "(*)*)" should outpu YES;
because you consider the first ')' as some word in comment,so its use
is not to match ,so this sentence is right;
But i can't deny your two example is very useful to everyone!
Posted by baddiex 29 Aug 2003 12:37
> Sorry to say , the example you gave,
> example: "(*)*)" should outpu YES;
> because you consider the first ')' as some word in comment,so its
use
> is not to match ,so this sentence is right;
>
Re: What do u mean??
Posted by XiangGuangTe 22 Apr 2004 15:26
(*(**) is 'YES' Because the second '(*' are the word in comment.

(**)*) is 'NO' Because the last '*)' has no '(*' with it.