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

建议使用的浏览器:

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

3587:NUDOTA

题目描述
Welcome to NUDOTA, it’s a game that attracts thousands of people around the campus. In the game, we first get 603 unit of money, and every seconds we get 1unit of money first. When our hero died, we lose 300 unit of money(you will always have non-negative amount of money). Every time you kills an enemy, you will get 200, and if you are the first one to kill enemy among all players, it is called First Blood and you will get an extra 200 unit. When you killed 3 or more enemies consecutively, that means you played very well in the game, and the system will get you an extra money, when you killed 3enemies consecutively, you get extra 50 unit (that means you get 250 unit when you killed the 3rd enemy), and you killed 4enemies consecutively you get extra 100 unit, and you killed 5 enemies consecutively you get extra 150 unit, and so on… Remember the max unit of extra money you get is 400 unit.
输入解释
Multiple cases.
The input contains N, M, K.(N<1000,M<1000,K<100000)
N means the number of players in team1.
M means the number of players in team2.(lenth of string is less than 1000)
next line containing the N strings indicating the names of N players in team1, seperating by one or more spaces.
next line containing the M strings indicating the names of M players in team2, seperating by one or more spaces.
K means there are K commands and queries.
K lines follow a char that is ‘K’ or ‘Q’.
‘K’ then PLAYER1 kill PLAYER2 in CURRENTTIME.(No two Killing events happens in the same time)
‘Q’ then PLAYER in CURRENTTIME.
input is sorted by CURRENTTIME.( 0<CURRENTTIME<100,000,000 )
输出解释
If it is a ‘Q’ command you are asked to output the hero’s money in the CURRENTTIME.
输入样例
1 1 2
a
b
K a b 10
Q a 11
输出样例
1014
来自杭电HDUOJ的附加信息
Author alpc21
Recommend zhouzeyong

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

源链接: HDU-3587

最后修改于 2020-10-25T23:05:01+00:00 由爬虫自动更新

共提交 0

通过率 --%
时间上限 内存上限
2000/1000MS(Java/Others) 131072/65536K(Java/Others)