Toggle navigation
CGOJ
F.A.Qs
ProblemSet
Source/Category
Status
Ranklist
Contest
Login
Language
中文
ئۇيغۇرچە
English
فارسی
ไทย
한국어
Problem4528--倒计时
4528: 倒计时
[Creator :
]
Time Limit :
1.000
sec
Memory Limit :
128 MiB
Submit
Solved: 7
Submit Num: 9
Statistics
ShowOff!
Description
给定一个正整数
lns="http://www.w3.org/1998/Math/MathML">
n
n
,请从大到小输出所有不超过
lns="http://www.w3.org/1998/Math/MathML">
n
n
且与
lns="http://www.w3.org/1998/Math/MathML">
n
n
保持同样奇偶性质的正整数。
Input
单个整数
lns="http://www.w3.org/1998/Math/MathML">
n
n
1≤n≤10000
Output
若干整数表示答案,每行一个数。
Sample Input
Copy
10
Sample Output
Copy
10 8 6 4 2
Source/Category
循环结构