Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
140063 李明秦 十进制转二进制 C++ Wrong Answer 1 MS 272 KB 228 2025-12-13 15:07:20

Tests(0/20):


Code:

#include<bits/stdc++.h> using namespace std; int main() { int x,a[64]={}; cin>>x; if(x==0)cout<<0; int i=0; while(x!=0){ a[i]=x%2; x/=2; i++; } for(int j=i;j>=0;j--){ cout<<a[j]; } return 0; }


Run Info:

------Input------
972586684
------Answer-----
111001111110000111111010111100
------Your output-----
0111001111110000111111010111100