Clock

TimeLimit: 2000/1000 MS (Java/Others)  MemoryLimit: 65536/65536 K (Java/Others)
64-bit integer IO format:%I64d
未提交 | 登录后收藏
Problem Description
Give a time.(hh:mm:ss),you should answer the angle between any two of the minute.hour.second hand
Notice that the answer must be not more 180 and not less than 0
Input
There are $T$$(1\leq T \leq 10^4)$ test cases
for each case,one line include the time

$0\leq hh<24$,$0\leq mm<60$,$0\leq ss<60$
Output
for each case,output there real number like A/B.(A and B are coprime).if it's an integer then just print it.describe the angle between hour and minute,hour and second hand,minute and second hand.
SampleInput
4
00:00:00
06:00:00
12:54:55
04:40:00
SampleOutput
0 0 0 
180 180 0 
1391/24 1379/24 1/2 
100 140 120 
 Hint每行输出数据末尾均应带有空格
Submit
题目统计信息详细
总AC数4
通过人数4
尝试人数5
总提交量8
AC率50.00%
AC该题后可以添加标签
贴完标签可以获得20ACB。
并且可以获得本题所有提交代码查看权限。
点击标题可以显示标签。
如果你还没认真思考过这题,请不要查看标签
如果您已经通过了该题,请务为该题贴上标签

T^T Online Judge

[BUG反馈] [FAQ] [闽ICP备17026590号-1]
当前版本:3.24 系统时间: