摘要: #include#include#include#includeusing namespace std;typedef int State[9];const int MAXSTATE=1000000;State st[MAXSTATE],goal;//int dist[MAXSTATE];int v... 阅读全文
posted @ 2014-12-23 19:05 sola94 阅读(129) 评论(0) 推荐(0) 编辑
摘要: #include#include#include#include#includeusing namespace std;int main(){ int a,b,x; while(scanf("%d%d",&a,&b)!=EOF) { if(ab) ans++; if(c... 阅读全文
posted @ 2014-12-23 19:04 sola94 阅读(126) 评论(0) 推荐(0) 编辑
摘要: #include#include#include#includeusing namespace std;int num[1100];int main(){ int n,k,l,r,sa,sk; int ver,yu,add,sla; int i,j; while(scanf(... 阅读全文
posted @ 2014-12-23 19:02 sola94 阅读(114) 评论(0) 推荐(0) 编辑
摘要: #include#include#include#includeusing namespace std;int bowl,plate;int n;int dish[1100];int main(){ int i,j; while(scanf("%d%d%d",&n,&bowl,&plat... 阅读全文
posted @ 2014-12-23 19:00 sola94 阅读(143) 评论(0) 推荐(0) 编辑
摘要: #include#include#include#include#includeusing namespace std;char mat[10][10];int vis[10][10];int ok,dx,dy;int m,n,d;int op[4][2]={0,1,1,0,0,-1,-1,0};b... 阅读全文
posted @ 2014-12-23 18:57 sola94 阅读(123) 评论(0) 推荐(0) 编辑