
计数类dp
文章平均质量分 68
计数类dp
Landing_on_Mars
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
900. 整数划分(计数类dp,完全背包)
一个正整数 n 可以表示成若干个正整数之和,形如:n=n1+n2+…+nk,其中 n1≥n2≥…≥nk,k≥1。我们将这样的一种表示称为正整数 n 的一种划分。现在给定一个正整数 n,请你求出 n 共有多少种不同的划分方法。原创 2023-09-28 21:52:57 · 163 阅读 · 0 评论 -
I Hate Non-integer Number,(线性dp,计数类)
D - I Hate Non-integer Number (atcoder.jp)Problem StatementYou are given a sequence of positive integers A=(a1,…,aN) of length N.There are (2N−1) ways to choose one or more terms of A. How many of them have an integer-valued average? Find the count modu原创 2023-11-30 21:42:59 · 917 阅读 · 0 评论