摘要: 大傻逼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)