| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 151466 | 卢语宸 | 18离开队伍后的人 | C++ | Wrong Answer | 1 MS | 272 KB | 257 | 2026-04-12 14:49:28 |
#include<bits/stdc++.h> using namespace std; int main() { int a,b[1000],c; cin>>a; for(int n=0;n<a;n++){ cin>>b[n]; } cin>>c; for(int n=c-1;n<a;n++){ b[c-1]=b[c]; } for(int n=0;n<a-1;n++){ cout<<b[n]<<" "; } return 0; }
------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 70 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