嘻嘻嘻 谁点谁完蛋

~Oo爆米花oO~  •  11天前


include<bits/stdc++.h>

using namespace std; int main(){

int n;
cin >> n;
if(n % 2 == 1)
    cout << -1;
else{
    while(n > 0){
        int p = 1;
        while(n >= p)
            p *= 2;
        printf("%d ", p / 2);
        n -= p / 2;
    }
}
return 0;

}


评论:

请先登录,才能进行评论