1 2 3 4
摘要: 这是一个非常有趣(not intersting)的题 传送门 https://www.luogu.com.cn/problem/P6554 dp[x] = sigm dp[p] + list[x]*cnt[x] ans = dp[x] / cnt[x] 利用换根dp枚举一下就好了,转移有点恶心,因为 阅读全文
posted @ 2020-11-02 22:34 Lesning 阅读(79) 评论(0) 推荐(0) 编辑