|  | 
|  | 
| back to board | (*)should be thought as 'YES'! Posted by bottles  14 Feb 2008 10:36why it is wrong?
 "An arithmetic expression in D++ is always opened by "(", is closed by ")" and may contain any of the following symbols: "=+-*/0123456789)(""
 
 arithmetic expression is opened by '(',may contain '*'and closed by ')'.so "(*)" can seen as a right  arithmetic expression.
 
 anyone can answer me??
Re: (*)should be thought as 'YES'! my AC'ed solution says that (*) is NOT a legal expression.Either the test set does not have such things, or judges do not consider (*) to be an arithmetic expr
Re: (*)should be thought as 'YES'! (*) is NOT valid!Re: (*)should be thought as 'YES'! Posted by h1ci  18 Jun 2009 19:35An arithmetic expression can't start with a pair of symbols "(*"Re: (*)should be thought as 'YES'! In my opinion, (*) is valid COMMENTARY - it's opened by (* and closed by *) ; I think we need to add "and these two pairs of symbols should not intersect" to this phrase in statement - " A comment is always opened by a pair of symbols "(*" and is closed by a pair of symbols "*)" , otherwise (*) is YES for sure.
 Edited by author 16.02.2010 13:52
Re: (*)should be thought as 'YES'! In my opinion, (*) is valid COMMENTARY - it's opened by (* and closed by *) ; I think we need to add "and these two pairs of symbols should not intersect" to this phrase in statement - " A comment is always opened by a pair of symbols "(*" and is closed by a pair of symbols "*)" , otherwise (*) is YES for sure. You is very crazy man :) I think, that you never write syntax analyzer for languages. You "additional condition"  is obvious for all, that ever write syntax analyzers, but not for you. :) This problem is about syntax analyzer , NOT working with any string and substrings.  Edited by author 16.02.2010 21:12 | 
 | 
|