编程介的小学生 2017-03-31 02:29 采纳率: 20.5%
浏览 758
已采纳

Killing Streak

Defense of the Ancients (DotA) is a custom scenario for Warcraft III. The objective of the scenario is to destroy the opponents' "Ancient". The two teams' ancients are heavily guarded structures at opposing corners of the map. Players use powerful units known as heroes, and are assisted by allied heroes and AI-controlled fighters called "creeps". As in role-playing games, players level up their hero and use gold to buy equipment during the mission.

Defense of the Ancients pits two teams of players against each other: the Sentinel and the Scourge. Players on the Sentinel team are based at the southwest corner of the map, and those on the Scourge team are based at the northeast corner. Each base is defended by towers and waves of units which guard the main paths leading to their base. In the center of each base is the "Ancient", a building that must be destroyed to win the game.

Each human player controls one Hero, a powerful unit with unique abilities. In Allstars, players on each side choose one of ninety-three heroes, each with different abilities and tactical advantages over other heroes. The scenario is highly team-oriented; it is difficult for one player to carry the team to victory alone. Nevertheless, some heroes, given enough time, can change the outcome single-handedly, while countering the opposing team's heroes. Defense of the Ancients allows up to ten players in a five versus five format and an additional two slots for referees or observers, often with an equal number of players on each side.

In order to win the game, killing is necessary. A killing Streak results when a single Hero accumulates multiple enemy hero kills without dying. The streak restarts upon the Hero's death to the enemy team, texts will show for every streak:

"(name of player) has a Killing Spree!" for 3 kills.
"(name of player) is Dominating!" for 4 kills.
"(name of player) has a Mega Kill!" for 5 kills.
"(name of player) is Unstoppable!" for 6 kills.
"(name of player) is Wicked Sick!" for 7 kills.
"(name of player) has a Monster Kill!!!" for 8 kills.
"(name of player) is Godlike!" for 9 kills.
"(name of player) is Beyond Godlike! Somebody kill him!!" for 10 kills and above. Although it is shown "Beyond Godlike! Somebody kill him!!", the game's voice actually says "Holy Shit!".
Besides, there are some more interesting things, like "First Blood", "Double Kill!" and "Triple Kill!".

"First Blood!"

This results when one side executes the first hero kill in the game. The player who drew First Blood gains an extra 200 gold, and the text "(name of player) just drew First Blood!" is shown.
Double Kill! / Triple Kill!

A Double Kill results when two enemy heroes are killed by a single player in a short period of time. Triple Kill is the same, only when 3 or more enemy heroes are killed. Kills must be performed within 14 seconds after the last kill to trigger the text. It does not matter if you are killed during the time. When 4 or more heroes are killed, Triple Kill will just be repeated. The text is "(name of player) just got a Double Kill!" or "(name of player) just got a Triple Kill!". And you should notice, if one killing leads to two killing streak, the text of the "Double Kill! / Triple Kill!" always shows later.
Now, if you have all the information about the killings, could you restore the texts which have been shown.

Input

The first line of the input is a single number T indicates the number of cases, there are at most 100 test cases. In each case, the killing information is like this:
minute:second (name of player1) kills (name of player2)
minute indicates the minutes the game had been player for, and second indicates the seconds. The name of player will less than 20 letters and there will be at most one kill in a single second. Each case will end with a line containing a single '#'. There will be less than 100 killings in a case.
Output

Restore the texts which have been shown. Output a blank line after each case.
Sample Input

2
1:30 A kills B
1:40 A kills C
1:50 A kills D
2:00 A kills E
#
10:00 vigoss kills tom
10:29 vigoss kills mike
10:14 vigoss kills peter
#
Sample Output

A just drew First Blood!
A just got a Double Kill!
A has a Killing Spree!
A just got a Triple Kill!
A is Dominating!
A just got a Triple Kill!

vigoss just drew First Blood!
vigoss just got a Double Kill!
vigoss has a Killing Spree!

  • 写回答

1条回答 默认 最新

  • threenewbee 2017-04-09 08:59
    关注
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 HFSS 中的 H 场图与 MATLAB 中绘制的 B1 场 部分对应不上
  • ¥15 如何在scanpy上做差异基因和通路富集?
  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?