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

平方为正

Posted by mingruoyuan at 2009-06-22 10:01:47 on Problem 2209
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:
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