#include <bits/stdc++.h> using namespace std; int main() { int n, b; cin >> n; int a[n + 5]; for (int i = 1; i <= n; i++) { cin >> a[i]; } cin >> b; for (int i = 1; i <= n; i++) { if (b != i) { cout << a[i] << " "; } } return 0; }
使用您的 蒙青创OJ 通用账户