| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 79563 | Kevin | 十进制转二进制 | C++ | Wrong Answer | 1 MS | 268 KB | 236 | 2024-07-08 15:06:24 |
#include <bits/stdc++.h> using namespace std; int main() { int s[100]; int n,i=0; cin>>n; if(n==0) cout<<0; while(n!=0){ s[i]=n%2; n=n/2; i++; } for(int j=i-1;j>=0;j--) { cout<<s[i]; } return 0; }
------Input------
972586684
------Answer-----
111001111110000111111010111100
------Your output-----
804446080444608044460804446080444608044460804446080444608044460804446080444608044460804446080444608044460804446080444608044460804446080444608044460804446080444608044460804446080444608044460804446080444608044460