| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 69641 | 许铭锐 | 十进制转二进制 | C++ | Wrong Answer | 1 MS | 272 KB | 199 | 2024-04-06 11:24:17 |
#include<bits/stdc++.h> using namespace std; int n,a[32],cnt=0; int main(){ cin>>n; while(n!=0){ a[cnt++]=n%2; n/=2; } for(int i=cnt-1;i>=0;i--){ cout<<a[i]; } return 0; }
------Input------
0
------Answer-----
0
------Your output-----