#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
#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
#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
测试脚本录制:方案一:我们先看看以下monkeyrecoder.py脚本:#Usage:monkeyrunnerrecorder.py#recorder.pyhttp://mirror.yongbok.net/linux/ ... ey_recorder.py;com.android.monkeyr...
分类:
移动开发 时间:
2015-07-23 17:23:28
阅读次数:
301
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
注意求最短路的时候用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
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
给出起点 终点 以及转弯次数 在 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