上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 36 下一页
摘要: 大傻逼trie树,更傻逼的是我这都没独立想出来,以后要少看题解,多多思考 阅读全文
posted @ 2018-04-26 21:33 poorpool 阅读(194) 评论(0) 推荐(0)
摘要: CQOI 板子大赛之 pollard rho cpp include include using namespace std; typedef long long ll; ll e, N, c, jzm, p, q, r, d, n; ll gcd(ll a, ll b){ return !b?a: 阅读全文
posted @ 2018-04-26 20:20 poorpool 阅读(169) 评论(0) 推荐(0)
摘要: k d tree 裸题……………… cpp include include include using namespace std; typedef long long ll; int n, k, rot, nowD, din; ll dui[205]; const ll oo=9e18; stru 阅读全文
posted @ 2018-04-26 15:17 poorpool 阅读(207) 评论(0) 推荐(0)
摘要: 题面不符?…… cpp include include include using namespace std; typedef long long ll; int n, m, nowD, rot, din, kk; const ll oo=9e18; struct Point{ int d[2], 阅读全文
posted @ 2018-04-26 11:06 poorpool 阅读(173) 评论(0) 推荐(0)
摘要: k d tree + 重构的思想,就能卡过luogu和bzoj啦orz cpp include include include using namespace std; int n, m, rot, nowD, opt, uu, vv, ans, rub[1000005], din, cur; co 阅读全文
posted @ 2018-04-26 08:53 poorpool 阅读(166) 评论(0) 推荐(0)
摘要: 分治+最小割 看到题解的第一句话是这个就秒懂了,然后乱七八糟的错误、越界、RE…… cpp include include include include include include using namespace std; int n, m, uu, vv, ww, hea[855], cnt 阅读全文
posted @ 2018-04-25 16:18 poorpool 阅读(177) 评论(0) 推荐(0)
摘要: 学了斜率优化这题就能一气呵成地做出来啦qwqqwq cpp include include using namespace std; typedef long long ll; int n, m, x[3005], s[3005], l, r, dp[3005][3005], que[3005]; 阅读全文
posted @ 2018-04-25 09:51 poorpool 阅读(204) 评论(0) 推荐(0)
摘要: "大米饼写的太棒辣qwqqwq" cpp include include using namespace std; typedef long long ll; int n, l, r, que[1000005]; ll x[1000005], p[1000005], c[1000005], dp[1 阅读全文
posted @ 2018-04-24 21:55 poorpool 阅读(105) 评论(0) 推荐(0)
摘要: 懒得写 cpp include include using namespace std; typedef long long longlivetheelder; int n, l, ll, rr, que[50005]; longlivetheelder w[50005], dp[50005]; s 阅读全文
posted @ 2018-04-24 21:10 poorpool 阅读(111) 评论(0) 推荐(0)
摘要: 被 bs 了姿势水平……好好学习数学QAQQAQQAQ "ref" cpp include include include using namespace std; typedef long long ll; int n, m, pri[10000005], cnt, mu[10000005], q 阅读全文
posted @ 2018-04-23 21:09 poorpool 阅读(126) 评论(0) 推荐(0)
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 36 下一页