搜索
yo_haha
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
dfs hdu 1016
http://acm.hdu.edu.cn/showproblem.php?pid=1016#include <cstdio> #include <cstring> using namespace std; int prime[40]={0}; int n,count; int ans[21]; int vis[21]; void dfs(int x) { if(count==n&&!pri原创 2015-05-27 10:39:04 · 255 阅读 · 0 评论 -
hdu 1195 双向bfs
http://acm.hdu.edu.cn/showproblem.php?pid=1195 这代码好长,不过好多重复的内容。#include <iostream> #include <queue> #include <cstring> using namespace std; struct node { int x, step; }; int vis[10000]; node q1[10原创 2015-06-19 18:07:57 · 319 阅读 · 0 评论
分享