0_0_33230508_16500.cpp:1:9: error: #include expects "FILENAME" or <FILENAME>
#include#include#includetypedef struct{ int x,y;}point;point a[10010];int map[1010][1010];int t,n,X,Y,sx,sy,ex,ey;using namespace std;int dis(int x,int y){ return x-y>=0?x-y:y-x;}int bfs(int u){ int i,j; for(i=1;i<=n;i++) { if(dis(a[i].x,sx)+dis(a[i].y,sy)<=u) return 0; if(dis(a[i].x,ex)+dis(a[i].y,ey)<=u) return 0; } for(i=0;i=0&&j=0&&y1=0&&j=0&&y2que; point now,temp; map[sx][sy]=0; now.x=sx; now.y=sy; que.push(now); while(!que.empty()) { temp=que.front(); que.pop(); if(temp.x==ex&&temp.y==ey) return 1; if((temp.x+1>=0&&temp.x+1=0&&temp.y=0&&temp.x-1=0&&temp.y=0&&temp.x=0&&temp.y+1=0&&temp.x=0&&temp.y-1>1; if(bfs(mid)) left=mid+1; else right=mid-1; } bfs(right); printf("%d %d\n",right+1,map[ex][ey]); } } return 0;}
^
|