@root

12121 Game for peace 2024-05-26 15:29:42 11
#include <iostream>
using namespace std;
int main() {
    int n, m;
    cin >> n;
    int a[n];
    for (int i = 0; i < n; i++) {
        cin >> a[i];
    }
    cin >> m;
    for (int i = 0; i < n; i++) {
        if (a[i] != m) {
            cout << a[i] << " ";
        }
    }
    return 0;
}

为什么只有20分

{{ vote && vote.total.up }}

共 1 条回复

root 站长

2 2 2 2 2 ,m = 2, 照你的程序,输出就为空了