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:新人请教

Posted by woodvector at 2010-06-07 16:37:40 on Problem 1753
In Reply To:新人请教 Posted by:dalang0407 at 2010-05-26 15:47:07
> 我是新人 想请教一下 大家说这个题要枚举+BFS
> 具体的思想是怎么样呢?想不明白啊 把什么看成是图啊?是棋盘吗?不明白。。。
> 各位大牛说一下啊 谢谢了
因为是求最少翻几个棋子,所以用bfs列举1,2,...16个,当某时找到全黑或全白的情况,翻的个数就是最小,我正在写这题,不知用bfs空间要求大概要多大,直接枚举不用bfs在此题下应该也能过
那位牛用的bfs告我一下空间用了多少

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