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:哪位大神,给小弟一些错误的测试数据,不胜感激,总是runtime Error

Posted by dreamvyps at 2010-08-23 22:01:47 on Problem 1328
In 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:
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