#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;

}

最新文章

  1. 基于SignalR实现B/S系统对windows服务运行状态的监测
  2. SingalR--介绍
  3. R入门&lt;二&gt;-时间序列研究
  4. 【python】SQLAlchemy
  5. hdu 4033 2011成都赛区网络赛 余弦定理+二分 **
  6. 初步了解JSONP
  7. Hadoop SequenceFile数据结构介绍及读写
  8. paip.编程语言方法重载实现的原理及python,php,js中实现方法重载
  9. OD使用心得
  10. Linux Runtime PM介绍【转】
  11. 推荐cms
  12. Android实现网络访问
  13. BZOJ 1984 月下“毛景树”
  14. uva 348
  15. LICAppInfo
  16. DJANTO之FORM
  17. Django:(博客系统)添加文章(中文)出现UnicodeEncodeError乱码
  18. java关于get/post请求
  19. hdoj2476 String painter
  20. mysql 数据库备份及恢复

热门文章

  1. SQL,数据库连接
  2. 洛谷 P1376 机器工厂
  3. (十一)mybatis之映射器(select)
  4. 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
  5. 插值(scipy.interpolate)
  6. windows8无脑式双系统安装教程(转)
  7. mvc的model验证,ajaxhelper,验证机制语法
  8. 解决IllegalBlockSizeException:last block incomplete in decryption异常
  9. Bootstrap 基本按钮
  10. vue-cli3.0 生产包去除console.log