思路一样,a[i] = __lg(a[i]);这里改成while(a[i] != 1) a[i] /= 2, ++b[i];试试
点赞 1

相关推荐

牛客网
牛客企业服务