摘要: DZY Love Math 系列 [BOZJ3309] DZY Loves Math 顺着套路就能得到:$Ans = \sum_{T=1}\lfloor \frac{n}{T} \rfloor \lfloor \frac{m}{T} \rfloor \sum_{d|T} f(d) \mu(\frac 阅读全文
posted @ 2019-02-08 00:04 GuessYCB 阅读(451) 评论(0) 推荐(1) 编辑
摘要: 题目描述 "Luogu" 题目大意:给一棵$n$个点的树,求所有联通块中第$K$大的权值$W_k$之和。 数据范围:$K\leq n\leq 1666$ , $W_{max}\leq 1666$,答案对$64123$取模,时限$7sec$。 题解 $Ans = \sum_{S} Kth\ of\ S 阅读全文
posted @ 2019-02-08 00:02 GuessYCB 阅读(290) 评论(0) 推荐(0) 编辑