Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
131290 胥博雯 18离开队伍后的人 C++ Wrong Answer 2 MS 272 KB 502 2025-09-21 17:15:53

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 i,a[101]={},n,m; cin>>n; for(i=1;i<=n;i++) cin>>a[i]; cin>>m; for(i=m+1;i<=n;i++) a[i+1]=a[i]; a[n]=0; for(i=1;i<n-1;i++) cout<<a[i]<<" "; cout<<a[n-1]<<endl; return 0; }


Run Info:

------Input------
48 10 48 51 58 40 90 5 59 60 47 97 8 68 52 35 37 70 9 76 1 86 75 33 42 63 18 44 92 36 10 19 6 42 69 40 41 33 22 48 1 84 58 72 24 36 88 27 83 16
------Answer-----
10 48 51 58 40 90 5 59 60 47 97 8 68 52 35 70 9 76 1 86 75 33 42 63 18 44 92 36 10 19 6 42 69 40 41 33 22 48 1 84 58 72 24 36 88 27 83
------Your output-----
10 48 51 58 40 90 5 59 60 47 97 8 68 52 35 37 70 70 70 70 70 70 70 70 70 70 70 70 70 70 70 70 70 70 70 70 70 70 70 70 70 70 70 70 70 70 70