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 bjss222 at 2007-04-06 21:00:42 on Problem 2479
In Reply To:哪位大侠帮小辈看看哪里错了?555555~~ Posted by:chenhaifeng at 2006-10-02 08:48:32
用
3
-1 -2 -3 
试一下
还有
n--;//去掉
for(i=1;i<=n;i++) // i=1;
scanf("%d",&a[i]);

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