上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 44 下一页
摘要: 传送门 题解 这几道都是上周llj讲的题,题解也写得十分好了,所以直接贴了几个链接和代码。 //Achen #include<algorithm> #include<iostream> #include<cstring> #include<cstdlib> #include<cstdio> #inc 阅读全文
posted @ 2018-03-19 21:08 啊宸 阅读(194) 评论(0) 推荐(0) 编辑
摘要: 传送门 辣鸡题目毁我人生败我前程 50分代码 //Achen #include<algorithm> #include<iostream> #include<cstring> #include<cstdlib> #include<vector> #include<cstdio> #include<q 阅读全文
posted @ 2018-03-19 20:10 啊宸 阅读(221) 评论(0) 推荐(0) 编辑
摘要: 传送门 题解 //Achen #include<algorithm> #include<iostream> #include<cstring> #include<cstdlib> #include<vector> #include<cstdio> #include<queue> #include<c 阅读全文
posted @ 2018-03-19 20:09 啊宸 阅读(196) 评论(0) 推荐(0) 编辑
摘要: 传送门 旋转卡壳。 答案一定出现在对踵点中。 //Achen #include<algorithm> #include<iostream> #include<cstring> #include<cstdlib> #include<vector> #include<cstdio> #include<q 阅读全文
posted @ 2018-03-19 20:07 啊宸 阅读(167) 评论(0) 推荐(0) 编辑
摘要: 传送门 题解 //Achen #include<algorithm> #include<iostream> #include<cstring> #include<cstdlib> #include<vector> #include<cstdio> #include<queue> #include<c 阅读全文
posted @ 2018-03-19 20:05 啊宸 阅读(178) 评论(0) 推荐(0) 编辑
摘要: 传送门 题解 //Achen #include<algorithm> #include<iostream> #include<cstring> #include<cstdlib> #include<vector> #include<cstdio> #include<queue> #include<c 阅读全文
posted @ 2018-03-19 20:04 啊宸 阅读(165) 评论(0) 推荐(0) 编辑
摘要: 传送门 题解 扩展欧拉定理。 线段树维护,已经全改到底了的节点就不管,不然暴力修改下去。 //Achen #include<algorithm> #include<iostream> #include<cstring> #include<cstdlib> #include<vector> #incl 阅读全文
posted @ 2018-03-19 20:01 啊宸 阅读(214) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2018-03-16 10:00 啊宸 阅读(8) 评论(0) 推荐(0) 编辑
摘要: 染色(dye) Description Serene 和 Achen 在玩染色游戏。Serene 和 Achen 站在一个 n 个点 m 条边的无向连通图中,在第 i 次玩染色游戏时,Serene 在 a_i,Achen 在 b_i,并且所有节点都变为白色,在这次游戏中,Serene 和 Achen 阅读全文
posted @ 2018-03-14 21:09 啊宸 阅读(972) 评论(0) 推荐(0) 编辑
摘要: 题面传送门 令$f[i]$表示还剩$i$种模板没有收集到,期望还需要买几个模板 $f[i]= \frac{n-i}{n} \times f[i] + \frac{i}{n} \times f[i-1] +1$ 解得:$f[i]=f[i-1]+n/i$ 令$dp[i]$表示有$i$种模板没收集到,期望 阅读全文
posted @ 2018-03-14 20:57 啊宸 阅读(156) 评论(0) 推荐(0) 编辑
上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 44 下一页