摘要: 题目:http://ac.jobdu.com/problem.php?pid=1553/* 分别算出时针和分针的度数,做差之后分几种情况讨论,(-360,-180),[-180,0),[0,180],(180,360). */#include int main(){ int h,m; while (~scanf("%d:%d",&h,&m)) { double hd,md,mdd; hd = (h%12)*30; md = m*6; mdd = ((double)m)/2; double temp = hd ... 阅读全文
posted @ 2014-03-18 11:38 Roly Yu 阅读(246) 评论(0) 推荐(0) 编辑