在 线 评 测 系 统
Toggle navigation
HNUAHE-OJ
F.A.Qs
ProblemSet
Source/Category
Status
Ranklist
Contest
Login
Problem F: 数字魔幻分解
Problem F: 数字魔幻分解
[Creator :
]
Time Limit :
1.000
sec
Memory Limit :
128 MiB
Submit
ProblemList
Solved: 14
Submit Num: 15
Statistics
ShowOff!
Description
将任意正整数用
2
的幂次方表示并输出。例如:
137=2
7
+2
3
+2
0
Input
一个正整数n
n<=500
Output
n用2的幂次方表示时,各个幂次项的指数(从大到小排列)
Sample Input
Copy
137
Sample Output
Copy
7 3 0