UVa 579 - ClockHands
来源:互联网 发布:女用情趣用品 知乎 编辑:程序博客网 时间:2024/06/06 11:44
传送门UVa 579 - ClockHands
计算时针和分针角度的问题, 应该不难.
推出来的公式是θ = 30 * h - 5.5 * m
#include <cstdio>#include <cmath>using namespace std;int main(){ //freopen("input.txt", "r", stdin); double h, m; while (true) { scanf("%lf", &h); getchar(); scanf("%lf", &m); if (h == 0 && m == 0) break; double temp = abs(30 * h - 5.5 * m); if (temp > 180) temp = 360 - temp; printf("%.3f\n", temp); } return 0;}
0 0
- UVa 579 - ClockHands
- UVa OJ 579-ClockHands
- uva 579 - ClockHands
- uva-579 - ClockHands
- UVa 579 - ClockHands
- UVa 579 - ClockHands
- uva 579ClockHands
- UVa 579 - ClockHands
- UVA 579 ClockHands
- uva 579 - ClockHands
- uva 579 ClockHands
- uva 579 - ClockHands
- UVa 579 - ClockHands
- UVa 579 - ClockHands
- Uva 579 ClockHands
- uva 579 ClockHands(找规律)
- uva 579 ClockHands(几何+水题)
- 579 - ClockHands
- 用sp_executesql执行动态SQL语句及获得返回值
- OpenStack、Xen、lxc 、kvm、qemu与Hadoop(Yarn),Mesos 与Spark,Hadoop
- LeetCode:Linked List Cycle--链表快慢指针实现求链表中位和查找链表中是否存在环
- SpringMVC配置文件
- hadoop--1 搭建伪分布式实验环境
- UVa 579 - ClockHands
- 【C++ STL学习之七】STL算法之find和find_if
- Linux_查看修改SWAP大小
- 利用Dreamweaver开发JSP的方法
- opencv提取unifor LBP算子特征
- 关于log4j
- 字符串拷贝函数
- 八皇后问题
- 排坑之android 运行环境搭建及编译运行