摘要: solution by Mr.gtf 一道简单的递推 首先我们对树高从大到小排序 很容易得到递推式 ans[i]=Σans[j] (j a[i]; sort(a + 1 , a + 1 + n); a[0] = 0; f[0] = 1; done = 1; for (int i = 1 ; i = 阅读全文
posted @ 2020-02-06 23:40 _Buffett 阅读(263) 评论(0) 推荐(0) 编辑