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:帮忙看看,C++ AC g++WA 用的STL priorityqueue

Posted by weakY at 2009-08-23 10:15:23 on Problem 1521
In Reply To:帮忙看看,C++ AC g++WA 用的STL priorityqueue Posted by:seu_cl at 2009-08-22 19:01:41
printf("%d %d %.1lf\n",l*8,b[j-1].w,(double)(l*8/b[j-1].w));

你C++能AC?(double)(l*8/b[j-1].w)应该是(double)l*8/b[j-1].w,你的double强制类型转换没有将它们转换成double的除法

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