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

建议使用的浏览器:

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

5276:YJC tricks time

题目描述
YJC received a mysterious present. It's a clock and it looks like this.



YJC is not a timelord so he can't trick time but the clock is so hard to read. So he'd like to trick you.

Now YJC gives you the angle between the hour hand and the minute hand, you'll tell him what time it is now.

You'll give him the possible time in the format:

$HH:MM:SS$

HH represents hour, MM represents minute, SS represents second.
(For example, $08:30:20$)

We use twelve hour system, which means the time range is from $00:00:00$ to $11:59:59$.

Also, YJC doesn't want to be too accurate, one answer is considered acceptable if and only if SS mod 10 = 0 .
输入解释
Multiple tests.There will be no more than $1000$ cases in one test.
for each case:

One integer $x$ indicating the angle, for convenience, $x$ has been multiplied by $12000$. (So you can read it as integer not float) In this case we use degree as the unit of the angle, and it's an inferior angle. Therefore, $x$ will not exceed $12000*180=2160000$.
输出解释
For each case:

$T$ lines. $T$ represents the total number of answers of this case.

Output the possible answers in ascending order. (If you cannot find a legal answer, don't output anything in this case)
输入样例
99000
0
输出样例
00:01:30
11:58:30
00:00:00
来自杭电HDUOJ的附加信息
Recommend hujie

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

题目来源 BestCoder Round #46

源链接: HDU-5276

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

共提交 0

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