#CCBCHBON0000019. Continue không làm kẹt while (Continue Without Stalling While)
Continue không làm kẹt while (Continue Without Stalling While)
Continue Without Stalling While
Source: Phước Hưng OJ
Version: Phuoc Hung OJ Extended
Problem Statement
Use a while loop to inspect 1 through . Skip multiples of 3 and print the rest, one per line. If none qualifies, print exactly EMPTY followed by a newline. Advance the loop counter before continuing.
Input
One integer .
Output
One qualifying number per line, or EMPTY if the output set is empty.
Subtasks
-
Subtask 1 (20%): .
-
Subtask 2 (30%): .
-
Subtask 3 (50%): .
Examples
Example 1
Input:
4
Output:
1
2
4
Explanation:
Skip multiples of 3 in 1..4; the output is 1, 2, 4.
Example 2
Input:
0
Output:
EMPTY
Explanation:
Skip multiples of 3 in 1..0; the output is EMPTY.