Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
113242 | 李朋秦 | 18成绩插入 | C++ | Wrong Answer | 0 MS | 272 KB | 472 | 2025-03-15 14:58:44 |
#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; for(int j=1;j<=a;j++){ c[j]=b[j-1]; cout<<c[j]<<" "; } return 0; }
------Input------
68 87 45 25 60 54 59 89 86 21 27 60 21 67 62 89 89 43 61 79 38 67 57 19 9 81 94 36 72 20 42 54 35 16 15 99 22 1 39 21 88 87 9 79 56 22 79 69 12 1 57 33 83 13 12 21 11 14 75 66 53 8 61 19 24 14 74 20 7 17
------Answer-----
17 87 45 25 60 54 59 89 86 21 27 60 21 67 62 89 89 43 61 79 38 67 57 19 9 81 94 36 72 20 42 54 35 16 15 99 22 1 39 21 88 87 9 79 56 22 79 69 12 1 57 33 83 13 12 21 11 14 75 66 53 8 61 19 24 14 74 20 7
------Your output-----
87 45 25 60 54 59 89 86 21 27 60 21 67 62 89 89 43 61 79 38 67 57 19 9 81 94 36 72 20 42 54 35 16 15 99 22 1 39 21 88 87 9 79 56 22 79 69 12 1 57 33 83 13 12 21 11 14 75 66 53 8 61 19 24 14 74 20 7