博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2012年7月11日

摘要: 题目:http://poj.org/problem?id=3608View Code #include <stdio.h>#include <math.h>#include <string.h>#include <algorithm>#define clr(a,b) memset(a,b,sizeof(a))#define sqr(x) ((x)*(x))using namespace std;const double eps = 1e-8;const double pi = acos(-1.0);const int inf = 0x3f3f3f 阅读全文

posted @ 2012-07-11 18:45 紫华弦筝 阅读(125) 评论(0) 推荐(0) 编辑

摘要: 题目:http://poj.org/problem?id=2187View Code #include <iostream>#include <cstdio>#include <math.h>#include <cstring>#include <algorithm>#define sqr(x) ((x)*(x))using namespace std;const double eps = 1e-8;const int pi = acos(-1.0);const int N = 500000+10;int dcmp(double x) 阅读全文

posted @ 2012-07-11 18:37 紫华弦筝 阅读(132) 评论(0) 推荐(0) 编辑

摘要: 题目:http://acm.uestc.edu.cn/problem.php?pid=1709View Code #include <stdio.h>#include <string.h>#include <iostream>#define ll long longusing namespace std;const int N = 50000+10;int M;ll a[N], n, dp[N], m;ll get_and(int y){ ll ans = 0; dp[0]=0; for (int i=1; i<=n; i++){ if ((a[i]& 阅读全文

posted @ 2012-07-11 18:32 紫华弦筝 阅读(164) 评论(0) 推荐(0) 编辑