#include <stdio.h>
#include <math.h>
int h, m
double calc(int h, int m)
{
double res
//24小时制
h %= 12
m %= 60
res = fabs(h*30 + m*0.5 - m*6)
if(res > 180)res = 360 - res
return res
}
int main(int argc, char ** argv)
{
scanf("%d %d", &h, &m)
printf("AT %02d:%02d the angle is %.1f\n", h, m, calc(h, m))
return 0
}
#include<stdio.h>int main(){
int T
int h,m,s,re
scanf("%d",&T)
while(T--){
scanf("%d%d%d",&h,&m,&s)
if(h>12) h=h-12
re=(h/12.0*360+(m/60.0*360+s/60.0*360/60)/12)-(m/60.0*360+s/60.0*360/60)
if(re<0) re=re+360
if(re>180) re=360-re
printf("%d°\n",(int)re)
}
}
#include"stdio.h"#include"math.h"
int main()
{ int x,y
float z,w
scanf("%d %d",&x,&y)
if(x!=12)
z=5.5*y-30*x
if(x==12)
z=5.5*y
if(z>=0)
w=z
if(z<0)
w=0-z
if(y<10)
printf("At %d:0%d the angle is %.1f degrees.\n",x,y,w)
if(y>=10)
printf("At %d:%d the angle is %.1f degrees.\n",x,y,w)
}