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:HELP 这样求最大最小值有错吗?? 怎么看也没错呀?谁能说说,不胜感激!!!

Posted by 810974380 at 2009-08-08 10:16:53 on Problem 2092
In Reply To:HELP 这样求最大最小值有错吗?? 怎么看也没错呀?谁能说说,不胜感激!!! Posted by:zhzz at 2008-08-08 10:56:52

你定义的 a[10001] 开始时并没有全部 初始化为0;

这样你以后查找时,许多元素没有 值,就  出错了~

使用前初始化一下 就 OK 了~~~

输出没有问题~我就是这样 AC的~

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