Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
题目描述有个人很脑残,把自己锁家里了(而且据题目说这种情况经常发生),然后他要开始找钥匙,开门,就想任务游戏里面一样 //他的目标是到卧室(也许他想午睡吧鬼知道)编号为0 //m,n分别代表起始房间,总共的房间(1<=n<=20) //接下来n行,描述n间房能和哪些房间相连,如果是字母,表示需要xx钥匙 //接下来n行,表示每间房间有的钥匙 BFS水之 Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator