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

不要被题目吓着了,其实很水的(暴力深搜,16ms可以过了)

Posted by nenu10_chengyy at 2011-07-17 10:47:31 on Problem 1426 and last updated at 2011-07-17 10:49:31
先写了个宽搜,最后得出一个惊奇的答案。然后写了一个超级水的深搜。

题目样例的数据是夸张的,其实有更加简单的答案(答案很多的,嗯嗯,不如,为什么要SpecialJudge?)。
宽搜得到的解中,最长的是198,19位数,于是,我就恶心它了,用一个unsigned long long保存目标答案,然后,暴力写了一个深度19得深搜……解空间最大2^19,16ms秒掉了。

总结,别被题目描述吓着了。

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