| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 149934 | 万嘉宇 | [在线测评解答教程] 求和 | C++ | Wrong Answer | 1 MS | 272 KB | 361 | 2026-03-21 09:46:22 |
#include<bits/stdc++.h> using namespace std; int main() { int n, x, b = 0; cin >> n; int a[n]; for (int i = 0; i < n; i++) { cin >> a[i]; } for (int i = 0; i < n; i++) { if (a[i] % 2 == 0) { x = a[i]; while (x > 0) { x = x / 10; b++; } if (b % 2 == 0) { cout << a[i] << endl; } } } return 0; }
------Input------
23 59
------Answer-----
276 1770
------Your output-----
4606886 0 -701628340 32764 0 16809984 0 0 4195064 0 0 0 -701628240