Run ID:75314

提交时间:2024-05-26 16:32:59

#include<bits/stdc++.h> using namespace std; int main(){ int a,b[32],cnt = 0; cin >> a; while(a != 0){ int yu = a%2; b[cnt] = yu; cnt++; a/=2; }for(int i = cnt-1;i >=0;i--){ cout<<b[i]; } return 0; }