Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
17094 huyanfeng 01字串(暴力枚举) C++ 无测评数据 0 MS 0 KB 335 2023-05-11 21:49:22

Tests(0/0):


#include<bits/stdc++.h> using namespace std; void shi_to_er(int x) { int num[10]; int cnt = 0; for (int i = 0; i < 5; i++) { num[cnt++] = x % 2; x /= 2; } for (int i = 4; i >= 0; i--) { cout << num[i]; } cout << endl; } int main() { for (int i = 0; i <= 31; i++) { shi_to_er(i); } return 0; }