Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
113013 任艺宸 18成绩修改 C++ Presentation Error 1 MS 276 KB 460 2025-03-15 10:53:06

Tests(0/10):


Code:

#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 a[1000],n,x,y; cin>>n; for(int i=0;i<n;i++){ cin>>a[i]; } cin>>x; cin>>y; a[x-1]=y; for(int i=0;i<n;i++){ cout<<" "<<a[i]; } return 0; }