Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
113243 李朋秦 18成绩插入 C++ Accepted 1 MS 272 KB 494 2025-03-15 14:59:39

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