问题描述 :
There is a strange clock, without any number written. Can you tell me what time it is now, based on the angle of the hour hand?
Resource Archiver
When the hour hand points right (0 degree), it is 3 o’clock. When it points to 80 degrees, it’s between 0 o’clock and 1 o’clock. Note that there is no 12 o’clock. You should always write 0 o’clock instead.
输入:
There are at most 10 test cases. Each case contains a single integer a (0 <= a < 360), the angle of the hour hand. The input ends with a = -1.
输出:
There are at most 10 test cases. Each case contains a single integer a (0 <= a < 360), the angle of the hour hand. The input ends with a = -1.
样例输入:
90
245
-1
http://blog.csdn.net/u013008291/article/details/41180091
奇怪的钟
问题描述:
这里有一个奇怪的钟,上面没有任何数字,你能通过时针的角度告诉我现在的时间吗?
资源存储服务器
当时针0度时是3点,当时针80度时是在0点到1点之间。请注意这里没有12点,你需要用0点代替12点。
输入:
最多有10个测试数据,每个测试数据里包含单独的数a(0<=a<=360),这是时针的角度。输入的末尾是a=-1.
输出:
最多有10个测试数据,每个测试数据里包含单独的数a(0<=a<=360),这是时针的角度。输入的末尾是a=-1.
样例输入:
90
245
-1