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

可能现在回复有点晚,但是是我看过了你的代码后,查查了push_heap()这个算法函数,用你的代码真的AC了,原题只有一个case,而你循环读入。。。。你就错在了这里。可能是其他OJ一般都是多个case吧,POJ经常只有一个case.

Posted by Liuzhaoliang at 2008-09-11 16:19:55 on Problem 2431 and last updated at 2008-09-11 16:48:57
In Reply To:Re:第一次贴wa的代码让高手们给我查错,真不好意思,我也用stl的heap+greedy Posted by:Liuzhaoliang at 2008-09-11 16:17:40
可能现在回复有点晚,但是是我看过了你的代码后,查查了push_heap()这个算法函数,用你的代码真的AC了,原题只有一个case,而你循环读入。。。。你就错在了这里。可能是其他OJ一般都是多个case吧,POJ经常只有一个case.

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