| Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|
| 87049 | sh25_zhoumy | 二进制分类 | C++ | Accepted | 0 MS | 236 KB | 409 | 2026-04-10 15:31:21 |
#include <iostream> using namespace std; int main() { int A = 0, B = 0; for (int i = 1; i <= 1000; ++i) { int num = i; int cnt1 = 0, cnt0 = 0; while (num > 0) { if (num % 2 == 1) cnt1++; else cnt0++; num /= 2; } if (cnt1 > cnt0) A++; else B++; } cout << A << " " << B << endl; return 0; }