hdu 1390
2024-10-20 08:33:42
#include<stdio.h>
int main() {
int t,n,a[1001];
scanf("%d",&t);
while(t--) {
scanf("%d",&n);
int i=0;
while(n) {
a[i++]=n%2;
n/=2;
}
int j;
int flag=0;
for(j=0;j<i;j++)
if(a[j]==1) {
if(!flag) {
flag=1;
printf("%d",j);
}
else
printf(" %d",j);
}
printf("\n");
}
return 0;
}
最新文章
- 基于SignalR实现B/S系统对windows服务运行状态的监测
- SingalR--介绍
- R入门<;二>;-时间序列研究
- 【python】SQLAlchemy
- hdu 4033 2011成都赛区网络赛 余弦定理+二分 **
- 初步了解JSONP
- Hadoop SequenceFile数据结构介绍及读写
- paip.编程语言方法重载实现的原理及python,php,js中实现方法重载
- OD使用心得
- Linux Runtime PM介绍【转】
- 推荐cms
- Android实现网络访问
- BZOJ 1984 月下“毛景树”
- uva 348
- LICAppInfo
- DJANTO之FORM
- Django:(博客系统)添加文章(中文)出现UnicodeEncodeError乱码
- java关于get/post请求
- hdoj2476 String painter
- mysql 数据库备份及恢复
热门文章
- SQL,数据库连接
- 洛谷 P1376 机器工厂
- (十一)mybatis之映射器(select)
- Tunneling cannot be enabled without the local_ip bound to an interface on the host. Please configure local_ip 192.168.30.71 on the host interface to be used for tunneling and restart the agen
- 插值(scipy.interpolate)
- windows8无脑式双系统安装教程(转)
- mvc的model验证,ajaxhelper,验证机制语法
- 解决IllegalBlockSizeException:last block incomplete in decryption异常
- Bootstrap 基本按钮
- vue-cli3.0 生产包去除console.log