| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 130699 | 胥博雯 | 18成绩修改 | C++ | Wrong Answer | 1 MS | 272 KB | 460 | 2025-09-14 17:17:46 |
#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int n,a[101]={},x,c; cin>>n; for(int i=0;i<n;i++) cin>>a[i]; cin>>x>>c; a[x]=c; for(int i=0;i<n;i++){ cout<<a[i]<<' '; } cout<<endl; return 0; }
------Input------
47 28 95 60 19 44 97 74 20 37 16 83 63 40 58 90 70 66 6 40 74 11 55 38 17 49 72 18 39 45 66 3 17 1 71 10 9 23 14 50 41 61 83 43 55 77 97 94 27 27
------Answer-----
28 95 60 19 44 97 74 20 37 16 83 63 40 58 90 70 66 6 40 74 11 55 38 17 49 72 27 39 45 66 3 17 1 71 10 9 23 14 50 41 61 83 43 55 77 97 94
------Your output-----
28 95 60 19 44 97 74 20 37 16 83 63 40 58 90 70 66 6 40 74 11 55 38 17 49 72 18 27 45 66 3 17 1 71 10 9 23 14 50 41 61 83 43 55 77 97 94