Run ID:93682

提交时间:2024-10-18 22:44:09

#include <bits/stdc++.h> using namespace std; int main() { int L; cin >> L; int a[L]; for(int j = 0;j < L;j++) cin>>a[j]; int f,g; cin>>f>>g; for(int j = 0;j < L;j++) { if (j == f) a[j] = g; } for(int i = 0;i < L;i++) cout<<a[i]<<' '; return 0; }