int m; cin >>m; while(m) { int n=m&(m-1); int k=m-n; cout<<log(k)/log(2)+1<<' '; m=n; } 这种?
点赞 7

相关推荐

牛客网
牛客网在线编程
牛客网题解
牛客企业服务