用户输出
49.0
系统信息
Exited with return code 0
编号 | 题目 | 状态 | 分数 | 总时间 | 内存 | 代码 / 答案文件 | 提交者 | 提交时间 |
---|---|---|---|---|---|---|---|---|
#25314 | #1139. ddd和鸽子 | Accepted | 100 | 44 ms | 284 K | C++ / 300 B | 电类904-穆琳杰 | 2020-04-25 18:30:03 |
#include <cstdio>
#include <cmath>
using namespace std;
int main() {
double HH, MM;
scanf("%lf:%lf", &HH, &MM);
double theta1, theta2, theta;
theta1 = 30 * ((int)HH % 12) + 0.5 * MM;
theta2 = 6 * MM;
theta = abs(theta1 - theta2);
if (theta >= 180)
theta = 360 - theta;
printf("%.1lf", theta);
return 0;
}