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:帮忙看看,C++ AC g++WA 用的STL priorityqueueIn 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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator