基础练习 报时助手

入门⏱ 1000ms💾 512MB🏷️ 语言入门

题目描述

现在给出一个当前时刻,请按英文的习惯把它读出来。 时刻用小时 $h$ 和分钟 $m$ 表示,在英文读法中,读一个时间的方法是: 若 $m$ 为 $0$,则先读出小时,然后加上“$o$ 'clock”,例如 $3$:$00$ 读作“three $o$ 'clock”。 若 $m$ 不为 $0$,则先读出小时,再把分钟读出来,例如 $5$:$30$ 读作“five thirty”。 时和分都采用英文数字的读法,其中 $0 \sim 20$ 读作: $0$:zero, $1$: one, $2$:two, $3$:three, $4$:four, $5$:five, $6$:six, $7$:seven, $8$:eight, $9$:nine, $10$:ten, $11$:eleven, $12$:twelve, $13$:thirteen, $14$:fourteen, $15$:fifteen, $16$:sixteen, $17$:seventeen, $18$:eighteen, $19$:nineteen, $20$:twenty。 $30$ 读作thirty,$40$ 读作forty,$50$ 读作fifty。 对于大于 $20$ 且小于 $60$ 的数字,先读整十的部分,再加上个位数。例如 $31$ 先读 $30$、再接 $1$ 的读法,读作“thirty one”。 按上面的规则,$21$:$54$ 读作“twenty one fifty four”,$9$:$07$ 读作“nine seven”,$0$:$15$ 读作“zero fifteen”。

输入格式

输入包含两个非负整数 $h$ 和 $m$,分别表示时间的时和分。非零的数字前没有前导 $0$。$h$ 小于 $24$,$m$ 小于 $60$。

输出格式

输出该时刻的英文读法。

数据范围

本题未单独约定数据范围,输入规模见题目描述。

样例输入 #1
0 15
样例输出 #1
zero fifteen