AB. 课例题 - 输出个位为5或者个位为8数
课例题 - 输出个位为5或者个位为8数
No testdata at current.
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 中所有个位为 5 或者个位为8 的所有的整数,每行 1 个。
比如,假设 n=20,那么满足条件的数输出如下:
5
8
15
18
输入输出说明
输入说明
一个整数 n。
输出说明
1∼n中所有满足条件的整数。
题目样例
样例输入
25
样例输出
5
8
15
18
25
数据范围
- 对于 100% 数据, 满足1<=n<=1000000000
这些题都有点善
- Status
- Done
- Rule
- XCPC
- Problem
- 42
- Start at
- 2025-1-18 13:45
- End at
- 2025-3-5 20:45
- Duration
- 1111 hour(s)
- Host
- Partic.
- 17