- 博客(5)
- 收藏
- 关注
原创 POJ 3986 数位dp
#include #include #include using namespace std;const int mod = 1000000003;const int maxn = 1 << 6;int n, k, inp[maxn], dp[maxn][maxn][2], pw[maxn];long long solve(int i, int pre, int len){ lo
2016-11-19 09:55:19 796
原创 POJ 3688 博弈与背包
#include #include using namespace std;const int maxn = 1E5 + 10;int inp[maxn], dp[maxn][2], n, m;int main(int argc, char const *argv[]){ while (~scanf("%d%d", &n, &m) && n + m) { for (int i
2016-11-19 09:53:31 444
原创 POJ 2287 贪心
#include #include #include using namespace std;const int maxn = 1010;int Tian[maxn], King[maxn], n;int main(int argc, char const *argv[]){ while (~scanf("%d", &n) && n) { for (int i = 0; i
2016-11-19 09:52:49 403
原创 POJ 1387 线段树
#include #include using namespace std;const int maxn = 100000;struct Event{ int x, y1, y2; int add;};struct IntervalTreeNode{ int count, total;};int n;struct Rectangle{ int x1, y1, x2,
2016-11-19 09:52:07 545
原创 POJ 2499
#include int T, a, b, kase;int main(int argc, char const *argv[]){ scanf("%d", &T); while (T--) { scanf("%d%d", &a, &b); int l = 0, r = 0; while (true) { if (a > b) { l += a /
2016-11-19 09:51:13 411
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人