2011年12月4日

HDU 1006 Tick and Tick

摘要: 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1006这题做了好久了,学习了网上的解法后自己写出来了。就是枚举12*60分钟,看一分钟内有多少秒是happytime,一分钟内解三个不等式得到区间。具体看代码。代码有注释很详细的。#include<stdio.h>#include<math.h>#include<iostream>#include<algorithm>using namespace std;struct qujian{ double l,r;}; double D;qujian sol 阅读全文

posted @ 2011-12-04 15:17 kuangbin 阅读(4366) 评论(1) 推荐(1) 编辑

导航

JAVASCRIPT: