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:请大牛指点,下面的程序哪错啦,为什么总是Wrong Answer呢?In Reply To:请大牛指点,下面的程序哪错啦,为什么总是Wrong Answer呢? Posted by:meteor5118 at 2012-04-02 21:24:42 改成下面的就能AC啦,POJ上 c(int*a){a=*a-*1[&a];}不能AC,还有d[i/2]/2.+d[--i/2]/2.)也不能AC,好奇怪啊 c(int*a){return*a-*1[&a];}i,d[1<<18];main(){for(;~scanf("%d",d+i++););qsort(d+1,i-2,4,c);printf("%.1lf",d[i/2]/2.+d[(i-1)/2]/2.);} Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator