The Angle
来源:百度知道 编辑:UC知道 时间:2024/06/06 13:00:19
The interval angle between the hour hand and the minute hand is always among 0 degree and 180 degree(including 0 and 180 degree). For example, when it's 12 o'clock, the angle of the two hands is 0 while 6:00 is 180 degree. Try to calculate any degree when it's between 12:00 to 11:59.
Input
The input data are of various situations. Every team consists of two numbers : the first number stands for the hour(great than 0 and less than or equal to 12) and second represents the minute( among [0, 59]). The input ends when the two numbers are both zeros.
Output
Print out the minimum angle between the two hands with the normal time form outputed.
Input Sample
12 0
12 30
6 0
3 0
0 0
Output Sample
At 12:00 the angle is 0.0 degrees.
At 12:30 the angle is 165.0 degrees.
At 6:00 the angle is 180.0 degrees.
At 3:00 the angle is 90.0 degrees.
Input
The input data are of various situations. Every team consists of two numbers : the first number stands for the hour(great than 0 and less than or equal to 12) and second represents the minute( among [0, 59]). The input ends when the two numbers are both zeros.
Output
Print out the minimum angle between the two hands with the normal time form outputed.
Input Sample
12 0
12 30
6 0
3 0
0 0
Output Sample
At 12:00 the angle is 0.0 degrees.
At 12:30 the angle is 165.0 degrees.
At 6:00 the angle is 180.0 degrees.
At 3:00 the angle is 90.0 degrees.
/*
让你参考,本程序从数组中取数据,你换成从文件读取就可以了
*/
#include <stdio.h>
void main()
{
int i=0;
float a,b;
int data[5][2] = {{12,18},{12,30},{6,0},{3,0},{0,0}};
while(data[i][0] != 0 || data[i][1] != 0)
{
a = (float)(data[i][0]%12+(float)data[i][1]/60) * 30.0;
b = (float)data[i][1] * 6.0;
printf("At %d:%02d the angle is %.1f degrees.\n",
data[i][0],data[i][1],(a-b>0)?(a-b):(b-a));
i++;
}
getch();
}
THE CORRS <ANGLE>歌词
The angle come in my life 是什么意思
The true angle is him in fact 谢谢翻译下
哪位亲有神起的HUG,相信,THE WAY U ARE和TRY-ANGLE的中文歌词??
Fly to the shy的《My angle》的MTV的问题?
angle eyes
if you are looking south at an angle you will notice the BBOX is very much off.怎么翻译?
求~东方神起棘手中文歌(我相信,Tri-Angle,My Little Princess,The Way U Are,Hug )的下载地址
求陶喆Angle的歌词
Angle的原唱