Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
87890 令狐文丽 18成绩插入 C++ Accepted 1 MS 272 KB 382 2024-08-15 21:15:16

Tests(10/10):


Code:

#include<iostream> using namespace std; int main(){ int a[101],b[101],n,gard; cin>>n; for(int i =0;i <n;i ++){ cin>>a[i]; b[i] = a[i]; } cin>>gard; a[0] = gard; for(int i =0;i <n;i ++){ a[i +1] = b[i]; } for(int i =0;i <n;i ++){ cout<<a[i]<<" "; } cout<<a[n]; return 0; }