上一页 1 2 3 4 5 6 7 8 9 10 ··· 12 下一页
摘要: 题目:http://poj.org/problem?id=3122这个题就好多了,没有恶心的精度问题,所以1A了。。 1 #include 2 #include 3 4 const double PI = acos(-1); 5 int r[10010], t, n, m; 6 7 int ... 阅读全文
posted @ 2013-10-25 20:01 Anti-Magic 阅读(147) 评论(0) 推荐(0) 编辑
摘要: 题目:http://poj.org/problem?id=1905恶心死了,POJ的输出一会要lf,一会要f,而且精度1e-13才过,1e-12都不行,错了一万遍终于对了。 1 #include 2 #include 3 4 int main() 5 { 6 double l, n, ... 阅读全文
posted @ 2013-10-25 19:30 Anti-Magic 阅读(132) 评论(0) 推荐(0) 编辑
摘要: 题目:http://poj.org/problem?id=2983 1 #include 2 #include 3 4 struct Edge 5 { 6 int u, v, w; 7 }edge[200010]; 8 9 int main()10 {11 int n, m;... 阅读全文
posted @ 2013-10-22 20:28 Anti-Magic 阅读(137) 评论(0) 推荐(0) 编辑
摘要: 题目:http://poj.org/problem?id=1201 1 #include 2 #include 3 #include 4 #include 5 6 const int INF = 0x3f3f3f3f; 7 8 struct Edge 9 {10 int v, w... 阅读全文
posted @ 2013-10-20 20:06 Anti-Magic 阅读(132) 评论(0) 推荐(0) 编辑
摘要: 题目:http://poj.org/problem?id=1716 1 #include 2 #include 3 #include 4 #include 5 6 const int INF = 0x3f3f3f3f; 7 8 struct Edge 9 {10 int v, w... 阅读全文
posted @ 2013-10-20 20:05 Anti-Magic 阅读(107) 评论(0) 推荐(0) 编辑
摘要: 题目:http://poj.org/problem?id=3258又A一道,睡觉去了。。 1 #include 2 #include 3 4 int d[50010]; 5 int s, n, m; 6 7 bool judge(int mid) 8 { 9 int sum = 0,... 阅读全文
posted @ 2013-10-15 22:09 Anti-Magic 阅读(144) 评论(0) 推荐(0) 编辑
摘要: 题目:http://poj.org/problem?id=3273 当分成的组数越多,所有组的最大值就会越小或不变,这一点不难证明: 如果当前分成了group组,最大值是max,那么max的这一组天数>=1,这时把max的这一组再分成2组,总的组数变成了group+1,最大值显然会减小或不变(当... 阅读全文
posted @ 2013-10-15 20:49 Anti-Magic 阅读(178) 评论(0) 推荐(0) 编辑
摘要: 题目:http://poj.org/problem?id=3273二分枚举,据说是经典题,看了题解才做的,暂时还没有完全理解。。 1 #include 2 #include 3 4 int n, m; 5 int a[100000]; 6 7 bool judge(int x) 8 { 9 ... 阅读全文
posted @ 2013-10-15 10:33 Anti-Magic 阅读(171) 评论(0) 推荐(0) 编辑
摘要: 题目:http://poj.org/problem?id=3264给定一段区间,求其中最大值与最小值的差。 1 #include 2 #include 3 #include 4 5 int dpMin[50010][31], dpMax[50010][31]; 6 7 int RMinQ(... 阅读全文
posted @ 2013-10-13 17:04 Anti-Magic 阅读(187) 评论(0) 推荐(0) 编辑
摘要: 题目:http://poj.org/problem?id=3371无聊恶心题,还是不做的好,不但浪费时间而且学习英语。不过为了做出点技术含量,写了个递归函数。。。还有最后判断es,ed,le时只判断小写,因为想多了还错了一次。。 1 #include 2 #include 3 #include ... 阅读全文
posted @ 2013-10-13 15:57 Anti-Magic 阅读(207) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 12 下一页