cswork / OA打开练习工作台

PaycomOA #15

Q15. C continue Statement

简单概念题可在线判题

考点(AI 标注)模拟/实现

In the original code, s starts at 0 and is incremented in while (s++ < 10); when s is less than both thresholds, the loop executes continue, otherwise it prints s. This site turns the upper limit and the two thresholds into inputs, keeping the loop and condition semantics unchanged.

输入格式

One line with three integers n, a, b. Ranges added by this site: 1≤n≤100000, 1≤a,b≤n.

输出格式

Output every s that is not skipped by continue, in the order the original loop prints them, separated by spaces.

样例 1

输入:

10 4 9

输出:

4 5 6 7 8 9 10

样例 2

输入:

5 1 5

输出:

1 2 3 4 5

样例 3

输入:

5 8 3

输出:

3 4 5