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:好奇怪,明明错的代码竟然AC了!

Posted by zhuyanxian at 2011-05-15 11:34:12 on Problem 2533
In Reply To:Re:好奇怪,明明错的代码竟然AC了! Posted by:zzw890827 at 2009-11-02 21:23:34
max的位置是正确的,for循环中得到的是最大的b[i],把max放for循环外面,还可以减少比较次数

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