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

建议使用的浏览器:

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

2293:Name PK

题目描述
Name PK is a funny game on the Internet. The game will calculate character's property based on its name.
Now we're simulating a simple Name PK game. Each character has 3 parameters: HP, STR and SPD (HP for health point, STR for strength and SPD for attacking speed).

For a name string of length N, Ci is ASCII code (decimal) of the i-th char.

PK rule:
1. Timer begins to increase from 1. When it is a multiple of (20-SPD), the corresponding character A has that SPD attack once, the opposite lose STR(A's) HP.

2. When any side has a HP ≤ 0, the PK is over.
输入解释
The input consists of several test cases. The first line of input consists of an integer T, indicating the number of test cases. Each test case is on a separate line, and it consists two strings separated by a whitespace, indicating the name of the characters.
Technical Specification

1. Names contain only English letters.
2. The length of each character's name is more than 1 and no more than 20.
3. T ≤ 1000.
输出解释
For each test case, output a line consisting of the result of the first character: "win", "lose" or "tie".
输入样例
3
Sylvia xay
Ivan Stacy
Boyd Greg
输出样例
lose
win
lose
来自杭电HDUOJ的附加信息
Recommend lcy

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

源链接: HDU-2293

最后修改于 2020-10-25T22:52:15+00:00 由爬虫自动更新

共提交 0

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