| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 142160 | 李亭绪 | 18成绩查找 | C++ | Wrong Answer | 0 MS | 276 KB | 469 | 2025-12-31 19:12:14 |
#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; cin>>n; int a[n+1]; for(int i=1;i<=n;i++){ cin>>a[i]; } int b,m; cin>>b>>m; a[b]=m; for(int i=1;i<=n;i++){ cout<<a[i]<<" "; } return 0; }
------Input------
20 70 90 15 79 79 4 50 49 18 125 31 22 19 39 8 37 17 8 62 14 29
------Answer-----
70 90 15 79 79 4 50 49 18 29 31 22 19 39 8 37 17 8 62 14
------Your output-----
70 90 15 79 79 4 50 49 18 125 31 22 19 39 8 37 17 8 62 14