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?int cmp1(const void *a,const void *b) { double *c,*d; c=(double *)a; d=(double *)b; return (*c)>(*d); } 这样写就RE了 int cmp1(const void *a,const void *b) { double *c,*d; c=(double *)a; d=(double *)b; if((*c)<(*d)) return -1; else if((*c)>(*d)) return 1; return 0; } 这样就过了 为什么?难道不一样吗?在别的oj上都可以过呀!还好我在别的oj上交了一下,不然不知道到还要查到什么时候呢! Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator