设为首页 加入收藏

TOP

2802:小游戏利用bfs来实现(二)
2018-10-21 22:09:30 】 浏览:52
Tags:2802: 小游戏 利用 bfs 实现
findTotalPath(x1,y1,x2,y2,direct,step);
if(totalStep<100000) cout<<"Pair "<<subId<<": "<<totalStep<<" segments."<<endl; else{ cout<<"Pair "<<subId<<": "<<"impossible."<<endl; } for(int i=0;i<h+2;i++){ for(int j=0;j<w+2;j++){ directStep[i][j]=new directNode(-1,0); } } } while(ques.size()>0){ ques.pop(); } cout<<endl; } }

 

首页 上一页 1 2 下一页 尾页 2/2/2
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
上一篇【C++基础】sort函数 下一篇CodeChef March Lunchtime 2018 d..

最新文章

热门文章

Hot 文章

Python

C 语言

C++基础

大数据基础

linux编程基础

C/C++面试题目