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:强烈建议想过的人如果想出方法的话用十分钟写个SPJ:)

Posted by gush at 2004-09-03 22:09:45 on Problem 1793
In Reply To:Re:强烈建议想过的人如果想出方法的话用十分钟写个SPJ:) Posted by:rruucc at 2004-09-03 21:59:43
> 同感 我也觉得是某个页面置换算法 但是任何一个置换算法也有好多中输出啊

这题的确是要用special judge, 可是却没有。
刚才提交了一个朋友的代码。
在堆的上浮操作的时候,我把>换成>=就WA,不改就AC。显然改不改答案都因该是对的,但方案不一样。我是用set来做的,当数值一样的时候我的程序会选择序号小的点。我想这就是我WA的原因吧。

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