How big is the angle? Time limit:1000/1000 MS (java/others) Memory limit:32768/32768 K (java/others) Total submission (s): 12533 Accepted Submission (s): 4969 Problem Description Time too fast, a semester so the past, XHD in a silly look at the table, out of the desire for data, suddenly he wanted to know the table of the hour and minute hand angle is how much. Now XHD know only time, ask you to help him figure out this angle. Note: The range of the angle [0,180], the rotation of the hour and minute hand is continuous rather than discrete. Input The first line of the input data is a data T, which indicates that there is a T group of data. Each group of data has three integers h (0 <= H < x), m (0 <= m <), s (0 <= s < 60) representing hours, minutes, and seconds, respectively. Output For each set of input data, an integer portion of the size of the output angle. Sample Input 2 8 3 17 5 13 30 Sample Output 138 75 Author Xhd Source ACM Program Design Final Exam-warm-up (Thanks XHD & 8600) |