反正每一个岛都要有雷达覆盖,放雷达的时候尽可能多覆盖岛......
#include<iostream>
#include<algorithm>
#include<cstdio>
#include<cmath>
#include<cstring>
using namespace std;
struct node
{
double x,y;
};
bool cmp(node a,node b)
{
return a.x<b.x;
}
int main()
{
// freopen("in","r",stdin);
int T,i,n,ans,jishu=0;
double d,pr,l,r,t;
node box[1010];
while(cin>>n>>d)
{
if(n==0&&......
阅读全文