这题为什么错了?

lyc13 2023-07-06 18:12:51 0

#include using namespace std; int main() { int n, a[10002]; cin >> n; for (int i = 0; i < n; i++) { cin >> a[i]; } int k; cin >> k; for (int i = k; k <= n - 1; i++) { a[i - 1] = a[i]; } for (int i = 0; i < n - 1; i++) { cout << a[i] << " "; } return 0; }

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

共 2 条回复

Even226 逗比

本小白估计不会

Even226 逗比

那一道?