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:尼玛假设100次不过就-1,这都能AC·····跪求大牛判定-1方法!!!

Posted by chencc at 2011-10-23 18:00:48 on Problem 3087
In Reply To:尼玛假设100次不过就-1,这都能AC·····跪求大牛判定-1方法!!! Posted by:songzhenqi at 2011-08-11 11:26:36
你把每次洗牌出来的新状态保存在一个集合里面。
有新状态再加入搜索队列,那么队列空了还没有找到目标状态就返回失败。

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