BFS
啦啦啦CS苦博士
一名活泼开朗的PhD Student
展开
-
HDU-OJ 杭电1495非常可乐
#include "stdio.h"#include "queue"#include "cstring" using namespace std;struct node{ int num[3]; int output;}now,nex;int vis[101][101][101];int rq[3];//最大容量 bool check(node x){ if((x.原创 2018-02-01 01:11:33 · 296 阅读 · 0 评论 -
HDU-OJ 杭电2612 Find a way 双层BFS
#include "iostream"#include "cstring"#include "queue"#define INF 0x3f3f3f3fusing namespace std;char a[201][201];int n, m;struct node{ int x, y; int step;}now,start1,start2;//记录 char vis原创 2018-02-02 00:29:25 · 172 阅读 · 0 评论