1 人解决,3 人已尝试。
1 份提交通过,共有 12 份提交。
9.9 EMB 奖励。
单点时限: 2.0 sec
内存限制: 256 MB
As Chief Bureaucrat at Missile Command, it has recently come to your attention that the existing performance guidelines do not sufficiently penalize frivolous use of expensive ammunition.
Therefore, you must write a new battle summary analysis tool which takes into account excess ammunition consumption during battle.
A battle consists of the following elements:
Performance is evaluated on a simple point scale. The performance criteria are as follows:
–NOTE 1: If a missile hits a shot, the shot does not disappear – it may hit other missiles
–NOTE 2: Shots of 0 radius cannot hit missiles (e.g. a missile will go through an already expired shot).
Input will be given in the following format (legend follows):
nb
nm
mx my mdx mdy mt
…
ns
sx sy st
…
…
In the following legend, indentation denotes repetition of the indented block a number of times equal to the value of the preceding input item:
For each battle, output a line containing the score for that battle.
2 2 4.0 8.0 0.0 -1.0 0.0 4.0 8.0 1.0 -1.0 0.0 1 4.0 4.0 3.0 3 4.0 10.0 0.0 -1.0 0.0 5.0 10.0 3.0 -6.0 4.0 13.0 10.0 -3.0 -5.0 4.0 3 4.0 5.0 3.0 7.0 8.0 4.0 9.0 4.0 4.0
-4 -17
1 人解决,3 人已尝试。
1 份提交通过,共有 12 份提交。
9.9 EMB 奖励。
创建: 16 年,3 月前.
修改: 7 年,2 月前.
最后提交: 3 年,12 月前.