- 博客(3)
- 收藏
- 关注
原创 Class & Homework - DFS
入门:城堡问题 // oj 2815基本的启示:先构造骨架,再补充细节;另外对二进制的使用要熟练一点#include <iostream> #include <algorithm> #include <cstring> using namespace std; int m,n; int castle[52][52],visited[52][52]; int c...
2018-05-30 20:38:59 179
原创 Class & Homework - BFS
Catch That Cow // poj 3278一个样例程序,速度一般,但思路清晰#include <iostream> #include <cstring> #include <queue> using namespace std; const int MAXN=100000; int visited[MAXN+2]; //访问过的地址 struct ...
2018-05-25 16:14:59 168
原创 Homework - Recursion
2018/5/22POJ 2106 Boolean Expressions#include <iostream> #include <cstring> #include <cstdio> using namespace std; char s[101]; int pos=0; bool value(); bool read(){ bool val=v...
2018-05-23 00:10:45 119
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人