|
|
вернуться в форумAdvice and test 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 :-) 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?? what do you mean that? why (*)*) should be no?? and if the input is: (*(**) (**)*) what's the correct output?? YOU ARE WRONG!! 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! > 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?? (*(**) is 'YES' Because the second '(*' are the word in comment. (**)*) is 'NO' Because the last '*)' has no '(*' with it. |
|
|