//#include "boxes.h"
#include <bits/stdc++.h>
using namespace std;
long long a[2000005];
int main()
{
ios_base::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
long long n,k;
cin>>n>>k;
for(int i=0;i<n;i++)
{
cin>>a[i];
}
for(int i=0;i<k;i++)
{
a[n+i]=a[n-1]+i;
}
for(int i=0;i<n+k;i++)
{
cout<<a[i]<<" ";
}
return 0;
}
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
162 ms |
12276 KB |
not a zalsequence |
2 |
Incorrect |
177 ms |
12172 KB |
not a zalsequence |
3 |
Incorrect |
165 ms |
12240 KB |
not a zalsequence |
4 |
Correct |
160 ms |
12184 KB |
Output is correct |
5 |
Correct |
157 ms |
12308 KB |
Output is correct |
6 |
Incorrect |
162 ms |
12148 KB |
not a zalsequence |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
160 ms |
12228 KB |
not a zalsequence |
2 |
Incorrect |
158 ms |
12208 KB |
not a zalsequence |
3 |
Incorrect |
167 ms |
12196 KB |
not a zalsequence |
4 |
Incorrect |
156 ms |
12228 KB |
not a zalsequence |
5 |
Incorrect |
160 ms |
12244 KB |
not a zalsequence |
6 |
Incorrect |
158 ms |
12180 KB |
not a zalsequence |
7 |
Incorrect |
180 ms |
12224 KB |
not a zalsequence |
8 |
Incorrect |
166 ms |
12288 KB |
not a zalsequence |
9 |
Incorrect |
148 ms |
12740 KB |
not a zalsequence |
10 |
Incorrect |
134 ms |
14148 KB |
not a zalsequence |
11 |
Incorrect |
126 ms |
13624 KB |
not a zalsequence |
12 |
Incorrect |
99 ms |
15044 KB |
not a zalsequence |
13 |
Incorrect |
101 ms |
15044 KB |
not a zalsequence |
14 |
Incorrect |
96 ms |
14952 KB |
not a zalsequence |