转载 sort函数解hdu 1209
摘要:
转载原文:thankshttp://hi.baidu.com/qiaolw/blog/item/c08b245a4a737bca9d820433.html题目大意是求时针与分针的角度,并输出中间那个的时间。时针与分针的求法:double ha=(h+m/60.0)*30; (如果h大于12,h=h-12)double ma=6.0*m;double angle=abs(ha-ma);angle=angle>180?360-angle:angle; 代码:#include<iostream>#include<cmath>#include<cstdio># 阅读全文
posted @ 2011-04-10 21:23 more think, more gains 阅读(193) 评论(0) 推荐(0) 编辑