[CCC2022 S1] Good Fours and Good Fives
You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.
题目描述
非常喜欢 和 ,他认为所有的数都可以用 和 进行相加得出。
例:
或
或 或
当然, 和 的顺序并不重要,重要的是他们的个数。
给你一个正整数 ,问有多少种方法可以用 和 拼凑成 。
输入格式
一行,一个整数 ,表示要被拼凑的数。
输出格式
一行,表示方法的数量。如果这个数不能被拼凑,请输出 。
14
1
40
3
6
0
提示
对于 的数据:
对于另外 的数据: 并且保证
对于另外 的数据: 并且保证
对于 的数据:
B班基础题单竞速3
- Status
- Done
- Rule
- Ledo
- Problem
- 6
- Start at
- 2024-8-9 8:25
- End at
- 2024-8-9 10:25
- Duration
- 2 hour(s)
- Host
- Partic.
- 12