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