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

建议使用的浏览器:

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

3175:Awesome DJMAX

题目描述

CD is an Otaku, he likes to play PSP game, and his favorite game is DJMAX. In this game, the player will listen to the music, then many notes will appear on the screen and fall down from the top. When the notes move to the line on the button of the screen, the player should press the correct keys just on time, and the system will judge your rate and give scores.
Every time after he finishes one mission, he always doubts the Score System of that game, he thinks he should get more points. Now he turns to you for help, can you write an impartial Score System so that tell him how many points he actually can get.
The rule of your Score System is:
a) There are three results CD may get: “COOL”, “GOOD”, “MISS”.
b) Each “COOL” will give CD 100 points; Each “GOOD” will give CD 50 points; Each “MISS” give CD 0 points.
c) Each “COOL” will give CD 1/10 “MAX-value”; Each “GOOD” will give CD 1/20 “MAX-value”. After CD gets one “MAX-value” or more, every “MAX-value” will add extra 10 scores to every “COOL” and 5 to every “GOOD”.
d) If CD beats notes incessantly, he will get COMBO. 2 notes will be 2 COMBO, 3 notes will be 3 COMBO, and so on. But, if he misses one note, the COMBO will back to zero, and all the “MAX-value” he have will be lost.
输入解释
The first line consists of an integer C(C<=50), indicating the number of test cases.
The first line of each case consists of an integers N(N<=1000), indicating the number of notes.
Then N lines follow, each line contains a string, this string will be “COOL”, “GOOD” or “MISS”.
输出解释
For each line, output an integer indicating the totals points CD gets.
输入样例
1
20
COOL
COOL
COOL
GOOD
GOOD
GOOD
GOOD
COOL
COOL
COOL
COOL
COOL
COOL
COOL
MISS
COOL
MISS
MISS
GOOD
COOL
输出样例
1470
来自杭电HDUOJ的附加信息
Recommend lcy

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

源链接: HDU-3175

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

共提交 0

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