Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
151447 卢语宸 18成绩插入 C++ Accepted 1 MS 280 KB 266 2026-04-12 14:06:51

Tests(10/10):


Code:

#include<bits/stdc++.h> using namespace std; int main() { int a[1000],b,o; cin>>b; for(int n=0;n<b;n++){ cin>>a[n]; } cin>>o; for(int n=b-1;n>-1;n--){ a[n+1]=a[n]; } a[0]=o; for(int n=0;n<b+1;n++){ cout<<a[n]<<" "; } return 0; }