Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
157874 王垚植 二进制数问题 C++ Wrong Answer 0 MS 264 KB 239 2026-08-18 17:57:12

Tests(0/1):


Code:

#include <bits/stdc++.h> using namespace std; int main(){ int num; cin>>num; string s=""; while (num>0){ s=s+char(num%2+'0'); num/=2; } reverse(s.begin(),s.end()); cout<<s; return 0; }


Run Info:

------Input------
0
------Answer-----
538 462
------Your output-----