#includeusing namespace std; const int N = 10010; int q[110][15][15]; int a[110]; signed main() { int n;cin>>n; int maxv=-1; for(int i=1;i<=n;i++)cin>>a[i],maxv=max(maxv,a[i]); int idx=0; int last[N]={0}; for(int i=1;i<=maxv;i++) { for(int j=1;j<=10;j++) { for(int k=1;k<=n;k++) { if(a[k] 2.拯救007
#include#include #include #include #include #include #include using namespace std; #define x first #define y second const int N = 110; typedef pair PII; PII a[N]; int n,d; bool st[N]; bool succ(int x) { if(a[x].x-d<=-50||a[x].x+d>=50||a[x].y-d<=-50||a[x].y+d>=50)return true; return false; } bool fir(int x) { int d1=a[x].x*a[x].x+a[x].y*a[x].y; int r=(d+7.5)*(d+7.5); if(r>=d1)return true; return false; } bool check(int x,int y) { int d1=pow(a[x].x-a[y].x,2); int d2=pow(a[x].y-a[y].y,2); int r=d*d; if(r>=d1+d2) return true; return false; } int dfs(int t){ st[t]=1; if(succ(t)) return 1; for(int i=0;i >n>>d; for(int i=0;i >x>>y; a[i]={x,y}; } if(d>=43) { cout<<"Yes"< 欢迎分享,转载请注明来源:内存溢出
评论列表(0条)