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 heimengnan at 2009-12-13 15:17:33 on Problem 1752 and last updated at 2009-12-13 15:18:21
In Reply To:有spj了 Posted by:hawk at 2004-08-10 19:39:52
我相信这题根本没有完全的spj

就拿sample举例子:

5 10
1 10
20 27
0 -3
15 15
8 2
7 30
-1 -10
27 20
2 9
14 21

sample的答案是:
19
-5
-4
-3
-2
-1
0
4
5
6
7
8
15
18
19
20
21
25
26
27

我跑出的答案是:
19
-10
-9
-3
-2
-1
0
2
3
4
5
6
14
15
16
20
21
22
23
24

可以看出 sample是按照尽量把广告贴到靠后的广告牌上
我的答案是尽量把广告牌贴到靠前的广告牌上 我想问下hawk这样算不算错?


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