uva816专题

uva816 Abbott’s Revenge

自己写的,测试了好多数据都行,但是WA,望大神指出错误 #include<bits/stdc++.h>#include<stdio.h>#include<cstring>using namespace std;int edge[10][10][5][5];int xx[10][10][5];int dir1[5][2];struct node{int x;int y;i

uva816 abbots的复仇 bfs+方向朝向

#include<cstdio>#include<queue>#include<cstring>#include<string>#include<sstream>#include<iostream>#include<vector>using namespace std;const int maxn=10;const char* dir="NESW";///不能是(NEWS),这样