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:数据全过了还是WA的看看In Reply To:Re:数据全过了还是WA的看看 Posted by:sjdeak at 2015-12-12 10:57:12 > qsort的compare参数返回值是int > 如果用return (double) - (double),强制转换的时候就会出问题 > 正确的方法应该是return (double)>(double)?1:-1; 感谢,果然是这个问题,一口老血吐出来,浪费了一个小时,非常感谢! Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator