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:请大牛指点,下面的程序哪错啦,为什么总是Wrong Answer呢?

Posted by cc118yy at 2015-07-10 23:07:55 on Problem 2623
In Reply To:Re:请大牛指点,下面的程序哪错啦,为什么总是Wrong Answer呢? Posted by:meteor5118 at 2012-04-04 13:15:04
> 改成下面的就能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:
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