AtCoder Beginner Contest 093
翻译中…
Problem Statement
翻译中…
Print all the integers that satisfies the following in ascending order:
翻译中…
- Among the integers between
$A$and$B$(inclusive), it is either within the$K$smallest integers or within the$K$largest integers.
翻译中…
Constraints
翻译中…
$1 \leq A \leq B \leq 10^9$$1 \leq K \leq 100$- All values in input are integers.
翻译中…
Input
翻译中…
Input is given from Standard Input in the following format:
翻译中…
A B K
翻译中…
Output
翻译中…
Print all the integers that satisfies the condition above in ascending order.
翻译中…
样例
Input #1
3 8 2
Output #1
3
4
7
8
- $3$ is the first smallest integer among the integers between $3$ and $8$.
- $4$ is the second smallest integer among the integers between $3$ and $8$.
- $7$ is the second largest integer among the integers between $3$ and $8$.
- $8$ is the first largest integer among the integers between $3$ and $8$.
Input #2
4 8 3
Output #2
4
5
6
7
8
Input #3
2 9 100
Output #3
2
3
4
5
6
7
8
9
题目信息
题面与样例版权归 AtCoder 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。