码迷,mamicode.com
首页 >  
搜索关键字:ey    ( 79个结果
【广度优先搜索】
#include #include #include using namespace std;int sx, sy, ex = 3, ey = 4;int dir[8][2] = {1, 1, 1, -1, -1, -1, -1, 1, 0, -1, 1, 0, -1, 0, 0, 1};char ...
分类:其他好文   时间:2015-08-01 20:30:34    阅读次数:117
HDU 1010 Tempter of the Bone (dfs)
#include#include#include#include#include#includeusing namespace std;int n,m,t;int sx,sy;int ex,ey;int ok;char mat[10][10];int vis[10][10];int op[4][2]...
分类:其他好文   时间:2015-07-27 00:08:34    阅读次数:192
COJ 1224 ACM小组的古怪象棋
#include #include #include #include //#include using namespace std; int n,m,sx,sy,ex,ey; int Map[21][21]; int dir[8][2]={{-1,2},{1,2},//向右跳 0,1                 {2,1},{2,-1},//向上跳 2,3...
分类:其他好文   时间:2015-07-26 15:51:43    阅读次数:157
【转】Android自动化测试之MonkeyRunner录制和回放脚本(四)
测试脚本录制:方案一:我们先看看以下monkeyrecoder.py脚本:#Usage:monkeyrunnerrecorder.py#recorder.pyhttp://mirror.yongbok.net/linux/ ... ey_recorder.py;com.android.monkeyr...
分类:移动开发   时间:2015-07-23 17:23:28    阅读次数:301
手机触摸屏的JS事件
var touchFunc = function(obj,type,func) { //滑动范围在5x5内则做点击处理,s是开始,e是结束 var init = {x:5,y:5,sx:0,sy:0,ex:0,ey:0}; var sTime = 0, eTime = 0; ...
分类:移动开发   时间:2015-07-08 20:45:50    阅读次数:129
POJ 3083 Bfs+Dfs
注意求最短路的时候用Bfs。#include#includeusing namespace std;int w,h,ex,ey,sx,sy;int map[100][100],can[100][100];struct vid{ int x,y,step;}queue[5000];int za...
分类:其他好文   时间:2015-06-21 17:02:25    阅读次数:130
跳马问题
#include #include using namespace std; typedef struct{ int row; int col; }Node; int n; int sx,sy;//start node int ex,ey;//end node int map[200][200];//mark array int a[8][2] = {{1,2},{2,1...
分类:其他好文   时间:2015-06-20 15:46:26    阅读次数:106
hdu 1983 Kaitou Kid - The Phantom Thief (2)
bfs+dfs很有意思也很好的一道题 然而我用了很久才ac #include #include #include using namespace std; char mapp[10][10]; int visit[10][10]; int dir[4][2]={{0,1},{0,-1},{1,0},{-1,0}}; int n,m,o; int sx,sy,ex,ey; int flag; s...
分类:其他好文   时间:2015-05-22 09:44:56    阅读次数:115
hdu 1728 迷宫 给定最大转弯次数
给出起点 终点 以及转弯次数 在 2 #include 3 #include 4 #include 5 using namespace std; 6 7 int n , m , k; 8 int sx , sy ,ex , ey ; 9 char map[110][110] ;10 boo...
分类:其他好文   时间:2015-05-20 22:00:42    阅读次数:106
79条   上一页 1 ... 3 4 5 6 7 8 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!