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 |
表达不清楚,不好意思,看下这段程序In Reply To:单case的话标志清不清无所谓吧 Posted by:frkstyc at 2005-10-13 21:32:56 对面上面这组数据,我的输出是tie,但答案明显是z for(i=0; i<k; i++) { if(d[i]>j) { j=d[i]; q=i; flag=0;////没有这句话都能过 } else if (d[i]==j) flag=1; } Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator