Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

RE的注意了,数据不区分大小写,但是有多余括号!!(另附官方数据)

Posted by lydrainbowcat at 2011-12-04 14:52:11 on Problem 1686 and last updated at 2011-12-04 14:52:38
Input:
15
2 *    1-3+(        2    *           5   )
9
8
      ((2    *   4)-7*2+(5-(6   * 7)+   4 )   )
(a)+(((b)))*(a-(2*b))*(1)*(b-2+c+a)*(d+e+a-f+b)
a    *    b    *      a * b * a * a * 9 * b * a * 8 * b * 7 * c * 9 * a
(((a)*a)*a  * b  * (     a-b)*(   a -   b   )*(a-c)*(a+b))*(((b-c)))
b*a*(a*(a*(b-c))*((a+b)*(a-c))*(a-b)*(a-b))
(w-a)+(a-b)-(c+a)*4+d
(a-w)+(b-a)-(a+c)*d+4
a-b*c+a+d*a-c*a+e*a*b*9*z*8*w*7
(a*a*a*a*b*(c-b+1)+(a*b*(a*(a*d-c)+e)))*9*z*8*w*7
(a+b-c)*2
(a+a)+(b*2)-(3*c)+c
a*2-(a+c)+( (a+c+e)*2)
3*a+c+(2*e)
(a-b)*(a-b)
(a*a)-(2*a*b)-(b*b)
(a-b)*(a-b)
(a*a)-(2*a*b)+(b*b)
a*b
b*a
1+a-a
b+1-b
2+1+a+1
1+3+a
(1+a+b)+7  +c+(d)
a+c+b+d +1+1+(1+(2+3))
((((1)+a)+b))+6  +c+(d)
a+c+b+d +1+1+(1+(2+3))





Output:
YES
NO
NO
YES
NO
NO
YES
YES
NO
YES
YES
YES
YES
YES
NO

Followed by:

Post your reply here:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator