Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
Re:问两组数据。。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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator