05 2013 档案

摘要:#include <iostream>using namespace std;struct point{ int x; int y;}P[705];int n,sum,tol;int main(){ int i,j,k; while(cin>>n,n) { tol=0; for(i=0;i<n;i++) cin>>P[i].x>>P[i].y; for(i=0;i<n;i++) { for(j=i+1;j<n;j+... 阅读全文
posted @ 2013-05-10 15:40 algorithms爱好者 阅读(63) 评论(0) 推荐(0)
摘要:#include <iostream>#include <string.h>using namespace std;char grid[25][25];int vis[25][25];int n,m,x,y,tol;void DFS(int a,int b){ vis[a][b]=1; if(b+1<=m)//右面 { if(b+1==m) { tol++; } else { if(gri... 阅读全文
posted @ 2013-05-08 22:24 algorithms爱好者 阅读(101) 评论(0) 推荐(0)