Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
959 | 曾浩森 | 十进制转二进制 | C++ | Wrong Answer | 0 MS | 256 KB | 225 | 2023-06-10 15:01:20 |
#include<iostream> using namespace std; int n; int main(){ int x,i=0; string s; char c; cin>>n; while(n!=0){ x=n%2; c=x+48; s=c+s; n=n/2; } cout<<s; }
------Input------
0
------Answer-----
0
------Your output-----