Fork Copy #include using namespace std; int k, r, m, n; int loc_x[20], loc_y[20], used[20]; int soli_x[100], soli_y[100], pop[100], covered[100]; int inside[20][100]; int maxp; int square(int x){ return x*x; } int isInside(int x1, int y1, int r, int x2, int y2){ return square(x1-x2)+square(y1-y2) <= square(r); } void Try(int rest, int loc, int ppl){ if (rest>=k){ if (ppl > maxp) maxp=ppl; return; } for (int l=loc;l>T; for (int tc=1;tc<=T;tc++){ cin>>k>>r; cin>>m; for (int i=0;i>loc_x[i]>>loc_y[i]; used[i]=0; } cin>>n; for (int i=0;i>soli_x[i]>>soli_y[i]>>pop[i]; covered[i]=0; } for (int i=0;i