| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 20296 | 张熠欣 | 进制转换 | C++ | Accepted | 100 | 0 MS | 256 KB | 221 | 2021-06-07 20:12:53 |
#include<bits/stdc++.h> using namespace std; int main(){ int n,a[1000],k=0; cin>>n; if(n==0){ cout<<0; return 0; } while(n){ a[++k]=n%2; n/=2; } for(int i=k;i>=1;i--) cout<<a[i]; return 0; }