Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
155141 张暄浩 十进制转二进制 C++ Wrong Answer 1 MS 272 KB 353 2026-05-31 16:41:53

Tests(0/20):


Code:

#include <iostream> #include <bitset> // 二进制转换需要的头文件 using namespace std; int main() { int x; // 循环读取输入,直到输入结束 while (cin >> x) { // 转换为32位二进制,然后输出(自动去掉前导零) cout << bitset<32>(x).to_string() << endl; } return 0; }


Run Info:

------Input------
972586684
------Answer-----
111001111110000111111010111100
------Your output-----
00111001111110000111111010111100