作业题 - 数字之和是10数
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.
题目描述
请问 1∼n 中,各个位数字之和为 10 的数有多少个?( n<1000 )。
比如:数字 19、28、37、136、253 都是符合条件的数。
输入输出说明
输入说明
输入一个整数 n(n<1000)。
输出说明
输出一个整数,代表符合条件数的个数。
题目样例
样例输入
100
样例输出
9
P2阶段测试
- Status
- Done
- Rule
- XCPC
- Problem
- 9
- Start at
- 2025-1-24 14:00
- End at
- 2025-1-24 17:00
- Duration
- 3 hour(s)
- Host
- Partic.
- 13