码迷,mamicode.com
首页 >  
搜索关键字:visit    ( 1001个结果
hdu 3152 Obstacle Course
bfs+优先队列,无难度 #include #include #include #define maxn 125+5 using namespace std; int n; int casee=1; int mapp[maxn][maxn]; int visit[maxn][maxn]; int dir[4][2]={{0,1},{0,-1},{1,0},{-1,0}}; struct stu ...
分类:其他好文   时间:2015-04-24 09:16:45    阅读次数:106
ZOJ 3332 Strange Country II
题目链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=3757 题面:   Strange Country II Time Limit: 1 Second      Memory Limit: 32768 KB      Special Judge You want to visit a st...
分类:其他好文   时间:2015-04-24 09:05:43    阅读次数:164
python 文件和路径操作函数小结
1: os.listdir(path) //path为目录 功能相当于在path目录下执行dir命令,返回为list类型 print os.listdir('..') 2: os.path.walk(path,visit,arg) path :是将要遍历的目录 visit :是一个函数指针,函数圆形...
分类:编程语言   时间:2015-04-22 17:36:09    阅读次数:156
hdu 1584 蜘蛛牌
陷入了思维误区,以为要用数组下标来记录牌的位置,看了别人的代码才发现是要用数组的值来记录牌的位置,转过这道弯之后就是道水题了 #include #include #include #define maxn 10+2 using namespace std; int mapp[maxn],visit[maxn]; int re; void dfs(int t,int sum) { if(t==9...
分类:其他好文   时间:2015-04-20 21:02:05    阅读次数:110
hdu 2181 哈密顿绕行世界问题
看起来很夸张,其实题目非常的水,测评数据也非常的水 #include #include using namespace std; int mapp[21][3]; int re[20+1]; int visit[20+1]; int casee; int m; void print(int l) { cout<<casee++<<": "; for(int i=0;i<l;i++) cou...
分类:其他好文   时间:2015-04-20 20:58:30    阅读次数:160
RSpec功能测试
(1)功能测试需要用到Capybara、DatabaseCleaner、Launchy ? ? (2)Capybara使用例如click_link、fill_in和visit,来模拟用户在浏览器中和应用程序交互的过程 ? ? (3)功能测试应该用feature替换掉d...
分类:其他好文   时间:2015-04-20 19:26:12    阅读次数:179
URAL1961:Cantonese Dialect
After some thought on where to spend a holiday Vova decided to travel around South China and visit Guangzhou, Shenzhen, Macau and Hong Kong. Vova heard that South China speaks the Cantonese dia...
分类:其他好文   时间:2015-04-19 22:51:16    阅读次数:241
poj 3278 bfs
题目大意:FJ要去抓牛...思路:bfs即可 1 #include 2 #include 3 #include 4 using namespace std; 5 6 const int N = 100001; 7 bool visit[N]; 8 9 struct Node10 {11 ...
分类:其他好文   时间:2015-04-19 16:06:51    阅读次数:134
hdu 2614 beat
这题最难得地方在于把题目看懂,简单的dfs,没什么好说的 #include #include #define maxn 15+1 using namespace std; int maxx; int mapp[maxn][maxn]; int visit[maxn]; int n; void dfs(int x,int time,int num) { for(int i=1;i<=n;i++)...
分类:其他好文   时间:2015-04-17 01:19:00    阅读次数:142
hdu 2217 Visit
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2217题目解释:起始位置在原点,给你固定的时间,让你左右跑,求在规定的时间内你最多能跑多少个点;解决本题,一个是要统计经过的点的个数,一个是全局只有一个拐,所以枚举所有的拐点即可解决;五个小时卡到一组数据...
分类:其他好文   时间:2015-04-15 21:14:59    阅读次数:115
1001条   上一页 1 ... 82 83 84 85 86 ... 101 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!