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 foreverlin at 2010-03-10 16:47:23 on Problem 2580
有个人很脑残,把自己锁家里了(而且据题目说这种情况经常发生),然后他要开始找钥匙,开门,就想任务游戏里面一样
//他的目标是到卧室(也许他想午睡吧鬼知道)编号为0 
//m,n分别代表起始房间,总共的房间(1<=n<=20) 
//接下来n行,描述n间房能和哪些房间相连,如果是字母,表示需要xx钥匙 
//接下来n行,表示每间房间有的钥匙 
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