为什么这样做只ac了50%? var input = parseInt(readline()); var x = 0; var ret = []; if (input === 1) { print('1') } else if (input === 2) { print ('2') }else if (input > 2) { while (input % 2 === 0) { // 偶数 ret.unshift(2); input = (input - 2) / 2 } while (input % 2...