#include<stdio.h>
#include<stdlib.h>
#include<string.h>
int main(void)
{
int a;
scanf("%d", &a);
int* arr = NULL;
int m;
int i;
int sum = 0;
arr = (int*)malloc(sizeof(int)* a);
for (i = 0; i < a; i++)
{
scanf("%d", &arr[i]);
}
sum = arr[a - 1];
scanf("%d", &m);
for (i = a-1; i < m-1; i++)
{
sum = sum+1;
}
printf("%d", sum);
return 0;
}
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
0 ms |
1084 KB |
Output isn't correct |
2 |
Incorrect |
0 ms |
1084 KB |
Output isn't correct |
3 |
Incorrect |
0 ms |
1084 KB |
Output isn't correct |
4 |
Incorrect |
0 ms |
1084 KB |
Output isn't correct |
5 |
Incorrect |
0 ms |
1084 KB |
Output isn't correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
0 ms |
1084 KB |
Output isn't correct |
2 |
Incorrect |
0 ms |
1084 KB |
Output isn't correct |
3 |
Incorrect |
0 ms |
1084 KB |
Output isn't correct |
4 |
Incorrect |
0 ms |
1084 KB |
Output isn't correct |
5 |
Incorrect |
0 ms |
1084 KB |
Output isn't correct |
6 |
Incorrect |
0 ms |
1084 KB |
Output isn't correct |
7 |
Incorrect |
0 ms |
1084 KB |
Output isn't correct |
8 |
Incorrect |
0 ms |
1084 KB |
Output isn't correct |
9 |
Incorrect |
0 ms |
1084 KB |
Output isn't correct |
10 |
Incorrect |
0 ms |
1084 KB |
Output isn't correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
0 ms |
1280 KB |
Output isn't correct |
2 |
Incorrect |
0 ms |
1236 KB |
Output isn't correct |
3 |
Incorrect |
8 ms |
1280 KB |
Output isn't correct |
4 |
Incorrect |
0 ms |
1280 KB |
Output isn't correct |
5 |
Incorrect |
0 ms |
1084 KB |
Output isn't correct |
6 |
Incorrect |
0 ms |
1084 KB |
Output isn't correct |
7 |
Incorrect |
8 ms |
1280 KB |
Output isn't correct |
8 |
Incorrect |
0 ms |
1084 KB |
Output isn't correct |
9 |
Incorrect |
4 ms |
1084 KB |
Output isn't correct |
10 |
Incorrect |
4 ms |
1280 KB |
Output isn't correct |
11 |
Incorrect |
0 ms |
1272 KB |
Output isn't correct |
12 |
Incorrect |
0 ms |
1084 KB |
Output isn't correct |
13 |
Correct |
0 ms |
1244 KB |
Output is correct |
14 |
Incorrect |
0 ms |
1280 KB |
Output isn't correct |
15 |
Incorrect |
0 ms |
1280 KB |
Output isn't correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
6 ms |
1272 KB |
Output isn't correct |
2 |
Incorrect |
0 ms |
1280 KB |
Output isn't correct |
3 |
Incorrect |
0 ms |
1280 KB |
Output isn't correct |
4 |
Incorrect |
5 ms |
1280 KB |
Output isn't correct |
5 |
Correct |
4 ms |
1244 KB |
Output is correct |
6 |
Incorrect |
5 ms |
1236 KB |
Output isn't correct |
7 |
Incorrect |
0 ms |
1084 KB |
Output isn't correct |
8 |
Incorrect |
0 ms |
1084 KB |
Output isn't correct |
9 |
Incorrect |
6 ms |
1280 KB |
Output isn't correct |
10 |
Incorrect |
3 ms |
1084 KB |
Output isn't correct |
11 |
Incorrect |
0 ms |
1084 KB |
Output isn't correct |
12 |
Incorrect |
0 ms |
1280 KB |
Output isn't correct |
13 |
Incorrect |
0 ms |
1280 KB |
Output isn't correct |
14 |
Incorrect |
7 ms |
1280 KB |
Output isn't correct |
15 |
Incorrect |
0 ms |
1084 KB |
Output isn't correct |