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

建议使用的浏览器:

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

BZOJ3928:[Cerc2014] Outer space invaders

题目描述
The aliens from outer space have (finally!) invaded Earth. Defend yourself, or be disintegrated! 
Or assimilated. Or eaten. We are not yet sure. 
The aliens follow a known attack pattern. There are 'n attackers, the i-th one appears at time 
ai, at distance di from you. He must be destroyed no later than at time bi, or else he will fire his 
weapon, which will definitely end the fight. 
Your weapon is an area-blaster, which can be set to any given power. If fired with power R, 
it momentarily destroys all aliens at distance R or smaller. It also consumes R fuel cells. 
Determine the minimal cost (measured in fuel cells) of destroying all the aliens, without being 
killed. 
有N个外星人,第i个外星人会在ai时间出现,离你距离di,并且必须在bi之前被消灭。你有一把很NB的武器,攻击范围是个半径为R的圆,R可以任意调整,不过你以R的范围每攻击一次就要消耗R单位能量。外星人被攻击一次就会死掉。求需要消灭所有外星人的最小消耗能量。 
N<=300, ai,bi,di<=10000 

输入解释
The first line of input contains the number of test cases T. The descriptions of the test cases 
follow: 
Each test case starts with a line containing the number of aliens n (1《 n≤ 300). Of the next 
n lines, the i-th one contains three integers ai, bi, di, (1 < ai < bi≤ 10 000; I < di≤ 10 000). 
The i-th alien appears at time ai, is idle until bi, and his distance from vou is di. 

输出解释
For each test case, output one line containing the mimmum number of cells needed to destrov 
all the aliens.

输入样例
1
3
1 4 4
4 7 5
3 4 7
输出样例
7
提示

BZPRO Powered by Remmina.
Github Repository
来自acmore.cc的附加信息
bzoj_id 3928
import_source_sha256 946bbb16fba2e90a389a80cd352b2863fdcf934e77302d325eb15649c6d91940
bzoj_checker_pending False

该题目包含在题集 大视野(八中)OJ 中

题目来源 BZOJ 3928

源链接: LOCAL-BZOJ3928

共提交 0 次

通过率 --%
时间上限 内存上限
10000 MS 128 MB