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:哪位大神,给小弟一些错误的测试数据,不胜感激,总是runtime ErrorIn Reply To:Re:哪位大神,给小弟一些错误的测试数据,不胜感激,总是runtime Error Posted by:dreamvyps at 2010-08-23 15:05:18 > > > 貌似里面的cmp写错了,应该是从小到大排序。 > 且sort写错了。应该是sort(rang_t+1,rang_t+1+n,cmp); > 请大牛指教!!! > > 错的关键是精度问题,你的int cur怎么用了int?真是的, 把int改为double之后就AC了 Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator