前缀和(题目)
EG1 激光炸弹
题意:给你n个点的坐标及权值,用r * r的范围最大覆盖是多少
题解
//二维的 前缀和 问题
#include <iostream>
#include <algorithm>
using namespace std;
int n, r;
int ta, tb;
int x, y, w;
int sum[5005][5005];
int ans ...
原创
2019-03-13 15:05:05 ·
466 阅读 ·
0 评论