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 |
平方为正In Reply To:Re:这样为什么是wrong answer?? Posted by:mingruoyuan at 2009-06-22 09:59:02 很显然第11行的 if(a[i]>=0) 应该去掉。因为有第18行的判断就够了。否则的话当指数n是2的时候,负数的平方是正的。但是没有加呢最后 嘿嘿~~ Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator