摘要: #include<stdio.h>#include<string.h>#include<stdlib.h>#define N 1005int map[N][N];int vis[N][N];int n,ans,now_k;const int dx[]={0,0,-1,1};const int dy[]={-1,1,0,0};void dfs(int sx,int sy){ int i,tx,ty; if(ans==n){ return ; } for(i=0;i<4;i++){ tx=sx+dx[i]; ty=sy+dy[i]; if(tx<1| 阅读全文
posted @ 2012-08-04 19:50 xxx0624 阅读(261) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h>#include<stdlib.h>#include<math.h>struct g{ double l,r;}point[1005];int cmp(const void *a,const void *b){ return (*(struct g *)a).l>(*(struct g *)b).l?1:-1;}int main(){ int i,n,tcase=1,ans; double a,b; bool flag; double dis,temp; scanf("%d%lf",&n,& 阅读全文
posted @ 2012-08-04 13:55 xxx0624 阅读(179) 评论(0) 推荐(0) 编辑