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

终于过了, 给没过的同志一点提醒吧

Posted by twf at 2008-02-21 09:09:39 on Problem 1009
我感觉这题首先要有好的数据结构,
我用Java, 一个Line来代表一行数据, 它支持valueAt(i), remainNumInSameBlock(i)这样的操作

Block来代表一串同样的块,
然后就是考虑细节

1),行的长度很大

2),行的长度为1

3),行内计算也要小心这样的数据如 
9
1 4
2 4
4 1
5 9
4 9
0 0

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