2300. Counting Swann’s Coins

单点时限: 2.0 sec

内存限制: 256 MB

Governor Weatherby Swann orders you to count the number of coins in the government treasury. To make the job more interesting you decide to say ”Dead” for all numbers that are a multiple of 3 and ”Man” for all numbers that are a multiple of 5. For numbers that are multiples of both 3 and 5 you say ”DeadMan”.

输入格式

The input will be the number of coins you need to count.

输出格式

The output will be the numbers and words in sequence, separated by spaces. Start a new line after each word.

样例

Input
4
/*
18
*/
Output
1 2 Dead
4
/*
1 2 Dead
4 Man
Dead
7 8 Dead
Man
11 Dead
13 14 DeadMan
16 17 Dead
*/

98 人解决,114 人已尝试。

118 份提交通过,共有 231 份提交。

2.7 EMB 奖励。

创建: 13 年,9 月前.

修改: 4 年,8 月前.

最后提交: 1 年,2 月前.

来源: 2007 Maryland High-school Programming Contest

题目标签