#Lutece3220. 子集和问题
子集和问题
Migrated from Lutece 3220 子集和问题
All parts of this problem, including description, images, samples, data and checker, might be broken. If you find bugs in this problem, please contact the admins.
Description
Tag: 转化,dp
给定正整数 ,求有多少 的子集 满足任意一个 到 的整数都能被表示成 的子集和,且方案数小于等于 。
对 取模。
Input
一行一个正整数 。
Output
一行一个整数表示答案。
Samples
3
2
5
5
1000
742952024
Constraints
Resources
2024 UESTC ICPC Training for Math