Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
115123 | 何松羽 | [在线测评解答教程] 求和 | C++ | Wrong Answer | 1 MS | 272 KB | 403 | 2025-03-29 13:00:20 |
#include<bits/stdc++.h> using namespace std; int main() { //出生小队在迪奥森林发现了7891 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 -753442004 32766 0 16809984 0 0 -2112264448 -1315746578 32766