Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
113591 李朋秦 18离开队伍后的人 C++ Accepted 1 MS 276 KB 454 2025-03-16 10:21:48

Tests(10/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[100],b,c; cin>>b; for(int e=0;e<b;e++){ cin>>a[e]; } cin>>c; for(int i=c-1;i<b;i++){ a[i]=a[i+1]; } for(int j=0;j<b-1;j++){ cout<<a[j]<<" "; } return 0; }