文章分类 -  HDOJ

摘要:起点设为(sx,sy),终点为(dx,dy),理解为一副棋盘,两点间最短路径minstep = abs(sx-dx) + abs(sy-dy) 则 minstep <= T , 并且 T - minstep 必定为偶数,(-。-;)怎么数学证明呢...... 利用这些条件就可以提前判断一些不满足上述 阅读全文
posted @ 2016-03-27 22:37 杨文的博客 阅读(118) 评论(0) 推荐(0)
摘要:http://acm.hdu.edu.cn/showproblem.php?pid=1006 设秒数为s(0 <= s <= 12*60*60) , 时分秒针的对应角度分别为 rs = 6*s - 360*floor(s/60) rm = s/10 - 360*floor(s/3600) rh = 阅读全文
posted @ 2016-03-17 20:12 杨文的博客 阅读(273) 评论(0) 推荐(0)