Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
80478 石晋骁 18成绩修改 C++ Accepted 1 MS 264 KB 259 2024-07-11 14:46:18

Tests(10/10):


Code:

#include<bits/stdc++.h> using namespace std; int a[101]; int main(){ int n,x,f; cin >> n; for(int i = 1;i <= n;i++){ cin >> a[i]; } cin >> x; cin >> f; a[x] = f; for(int j = 1;j <= n;j++){ cout << a[j] << " "; } return 0; }