This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#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;
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |