上一页 1 ··· 155 156 157 158 159 160 161 162 163 ··· 182 下一页
摘要: 简单题View Code #include <iostream>#include <cstdlib>#include <cstring>#include <cstdio>using namespace std;#define eps 1.0e-8int work(double a, double b, double c, double d){ int ret = 0; while (c > a + eps) { ret++; c /= 2; } while (d > b + eps) { ret++; d /= 2; } return 阅读全文
posted @ 2011-05-01 12:46 金海峰 阅读(157) 评论(0) 推荐(0) 编辑
摘要: 简单题View Code #include <iostream>#include <cstdlib>#include <cstring>#include <cstdio>using namespace std;int main(){ //freopen("D:\\t.txt", "r", stdin); int l, m; while (scanf("%d%d", &l, &m) != EOF && !(l == 0 && m == 0)) 阅读全文
posted @ 2011-05-01 12:29 金海峰 阅读(228) 评论(0) 推荐(0) 编辑
摘要: 不高兴的津津……View Code #include <iostream>#include <cstdlib>#include <cstring>#include <cstdio>using namespace std;int main(){ //freopen("D:\\t.txt", "r", stdin); int n; while (scanf("%d", &n) != EOF && n != 0) { int ans = 0; int maxhour = 阅读全文
posted @ 2011-05-01 12:17 金海峰 阅读(193) 评论(0) 推荐(0) 编辑
摘要: 简单题View Code #include <iostream>#include <cstdlib>#include <cstring>#include <cstdio>using namespace std;int main(){ //freopen("D:\\t.txt", "r", stdin); int t; scanf("%d", &t); while (t--) { int n; scanf("%d", &n); int sum = 0; 阅读全文
posted @ 2011-05-01 12:10 金海峰 阅读(235) 评论(0) 推荐(0) 编辑
摘要: 简单题View Code #include <iostream>#include <cstdlib>#include <cstring>#include <cstdio>using namespace std;int main(){ //freopen("D:\\t.txt", "r", stdin); int c, abc, abc2, a, b; while (scanf("%d%d%d", &c, &abc, &abc2)!= EOF) { a = (abc 阅读全文
posted @ 2011-04-30 16:51 金海峰 阅读(148) 评论(0) 推荐(0) 编辑
上一页 1 ··· 155 156 157 158 159 160 161 162 163 ··· 182 下一页