| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 147342 | 冯诚阳 | 十进制转二进制 | C++ | Wrong Answer | 0 MS | 272 KB | 446 | 2026-02-04 15:35:27 |
#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<vector> #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int n; cin>>n; vector<int>a; while(n){ a.push_back(n%2); n/=2; } for(int i=0;i<a.size();i++) cout<<a[i]; return 0; }
------Input------
972586684
------Answer-----
111001111110000111111010111100
------Your output-----
001111010111111000011111100111