数的计数
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.
Description
我们要求找出具有下列性质数的个数(包括输入的自然数n)。先输入一个自然数n(n≤1000),然后对此自然数按照如下方法进行处理:
不作任何处理;
在它的左边加上一个自然数,但该自然数不能超过原数的一半;
加上数后,继续按此规则进行处理,直到不能再加自然数为止。
## Input Format
自然数n(n≤1000)。
## Output Format
满足条件的数。
```input1 6 满足条件的数为 6(此部分不必输出) 16 26 126 36 136
```output1
6
2026-5-16递归练习
- Status
- Done
- Rule
- XCPC
- Problem
- 9
- Start at
- 2026-5-16 13:30
- End at
- 2026-5-16 16:30
- Duration
- 3 hour(s)
- Host
- Partic.
- 4