| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 162437 | 李昱龙 | 十进制转二进制 | C++ | Accepted | 4 MS | 268 KB | 239 | 2026-10-17 15:11:35 |
#include<bits/stdc++.h> using namespace std; int a[100]; int main(){ long long x,i=0; cin>>x; if(x==0){ cout<<0; return 0; } while(x>0){ a[i]=x%2; x=x/2; i++; } while(i--){ cout<<a[i]; } return 0; }