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

按表法的数字个数来统计,长度多不过5000

Posted by y08zxx at 2008-11-11 08:53:38 on Problem 2140
细想想如果按表法的数字个数来统计,如
15有1个的15,2个的7 8,3 个的 4 5 6,5个的 1 2 3 4 5
明显的每个长度答案只有唯一一个,数据量是一千万,最多长度不会超过5000
其中再去掉不必要的枚举即可

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