文章
246
粉丝
0
获赞
1172
访问
56.4k
#include<iostream> #include<stack> using namespace std; int n; stack<int> st; int main() { cin>>n; while(n) { st.push(n%2); n/=2; } while(!st.empty()) { cout<<st.top(); st.pop(); } return 0; }
登录后发布评论
暂无评论,来抢沙发