| 比赛 | 20130923 | 评测结果 | AAAAAAAAAA |
|---|---|---|---|
| 题目名称 | 鬼谷子的钱袋 | 最终得分 | 100 |
| 用户昵称 | Dissolute丶Tokgo | 运行时间 | 0.002 s |
| 代码语言 | C++ | 内存使用 | 0.29 MiB |
| 提交时间 | 2015-10-12 21:36:48 | ||
#include<cstdio>
void wc(int n,int m)
{
if(n==1)printf("%d\n",m+1);
else wc(n/2,m+1);
printf("%d ",n-n/2);
}
int main()
{
freopen("wallet.in","r",stdin);
freopen("wallet.out","w",stdout);
int n;
scanf("%d",&n);
wc(n,0);
return 0;
}