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 |
Re:好奇怪,明明错的代码竟然AC了!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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator