当前你的浏览器版本过低,网站已在兼容模式下运行,兼容模式仅提供最小功能支持,网站样式可能显示不正常。
请尽快升级浏览器以体验网站在线编辑、在线运行等功能。

建议使用的浏览器:

谷歌Chrome 火狐Firefox Opera浏览器 微软Edge浏览器 QQ浏览器 360浏览器 傲游浏览器

6951:Rocket land

题目描述
There are n rockets launched to a plain, which can be regarded as a two-dimensional plane.The rockets land in sequence.The $i$-th rocket will bring up smoke when it lands. The range is a circle with radius $r_i$.if the smoke cover the $j$-th rocket, it will cause the loss of $v_j$.How much loss does each rocket cause.
输入解释
The first line contains an integer T$(1 \leq T \leq 5)$representing the number of test cases.
For each test case, the first line contains an integer n$(1 \leq n \leq 2*10^5)$ representing the number of the rockets.
the next $n$ line followed. the $i-th$ line contains the coordinates of the $i-th$ rocket $x_i,y_i$$(-10^9 \leq x_i,y_i \leq 10^9)$, the loss when it is covered $v_i$$(1 \leq v_i \leq 10^9)$, and the range of smoke $r_i$ $(0 \leq r_i \leq 10^9)$.
It is guaranteed that there are no more than 1 testcases with $n>10^5$
The rocket may land at the same coordinates
all test cases create by randomly
输出解释
For each test case, print $n$ line representing the loss caused by $i$-th rocket.
输入样例
1
5
1 1 1 3
2 2 2 1
3 3 4 2
4 4 8 2
5 5 16 4
输出样例
1
2
6
12
28

该题目是Virtual Judge题目,来自 杭电HDUOJ

源链接: HDU-6951

最后修改于 2021-10-23T19:10:47+00:00 由爬虫自动更新

共提交 0

通过率 --%
时间上限 内存上限
40000/20000MS(Java/Others) 524288/131072K(Java/Others)