Strange Clock
Time Limit:1s | Memory limit:32M |
Accepted Submit:58 | Total Submit:118 |
Problem DescriptionInputThere 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.OutPutSample Input90 245 -1 Sample OutputExactly 0 o'clock Between 6 o'clock and 7 o'clock Original: 2009 NIT Cup National Invitation Contest
http://acm.fzu.edu.cn/problem.php?pid=1783
时钟起始置为0度时是3点,90度时为0点,就可以把每每个小时对应的度数求解出来
|