摘要: 题目 "luogu1466" 题解 看着题第一反应竟然是爆搜? 妥妥的超时,想了一下突然发现可以用背包,感觉很巧妙的样子 最近刷的很多普及难度的题都要WA个几遍才过,是因为我老了吗TAT 代码 include include include include include include defin 阅读全文
posted @ 2017-08-19 15:39 XYZinc 阅读(113) 评论(0) 推荐(0) 编辑
摘要: "luogu3367" 代码 include include include include include include define N 200005 using namespace std; int n,m,fa[N]; int findf(int x) { if(fa[x]==x) ret 阅读全文
posted @ 2017-08-19 13:07 XYZinc 阅读(92) 评论(0) 推荐(0) 编辑
摘要: "luogu3371" (os:还是模板比较友善) 代码 include include include include include include include define N 500005 define inf 2147483647 define ll long long using n 阅读全文
posted @ 2017-08-19 11:36 XYZinc 阅读(133) 评论(0) 推荐(0) 编辑
摘要: 题目 "luogu2709" "bzoj3781" 题解 很裸的一道莫队 最近真的是,感觉自己完全不在状态,几道题WA N遍过不了,最后发现全部都是类型出问题,int直接赋给longlong,longlong输出用%d !!? 啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊 阅读全文
posted @ 2017-08-19 09:37 XYZinc 阅读(177) 评论(0) 推荐(0) 编辑