Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
120687 | 丁海扬 | 18成绩查找 | C++ | Wrong Answer | 1 MS | 272 KB | 237 | 2025-05-31 10:09:52 |
#include<bits/stdc++.h> using namespace std; int main() { int a[101],n,index,score; cin>>n; for(int i=1;i<=n;i++) cin>>a[i]; cin>>index>>score; a[index]=score; 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