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 vvandvv at 2010-10-01 21:28:33 on Problem 1100 and last updated at 2010-10-01 21:32:58
In Reply To:问两组数据。。 Posted by:hhb at 2008-08-05 20:44:38
> 运算过程中可以出现负数吗?
> 如
> 4 = ( 4 1 ) ( 1 2 )
> 结果是
> 4=(4+1)+(1-2)
> 
> 多余的括号需要去掉吗?
> 如
> 4 = ( 4 (1) ) (( 2 1 ))
> 结果是
> 4=(4-(1))+((2-1))

结果真是搞笑呀,我的程序结果如下:
4 = ( 4 1 ) ( 1 2 )
得到
4=(4+1)+(1-2)
4=(4-1)-(1-2)

4 = ( 4 (1) ) (( 2 1 ))
得到
4=(4+(1))-((2-1))
4=(4-(1))+((2-1))
4=(4*(1))*((2-1))

然而楼上是AC,我却是WA,求后来大神给个解释,谢谢了!


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