#include <stdio.h>
int main(void)
{
int i,n,a[50001],m;
scanf("%d",&n);
for(i=1;i<=n;i++)
scanf("%d",&a[i]);
scanf("%d",&m);
printf("%d",m-n+a[n]);
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
1160 KB |
Output isn't correct |
2 |
Incorrect |
0 ms |
1152 KB |
Output isn't correct |
3 |
Incorrect |
0 ms |
1160 KB |
Output isn't correct |
4 |
Incorrect |
0 ms |
1156 KB |
Output isn't correct |
5 |
Incorrect |
0 ms |
1156 KB |
Output isn't correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
1160 KB |
Output isn't correct |
2 |
Incorrect |
0 ms |
1156 KB |
Output isn't correct |
3 |
Incorrect |
0 ms |
1152 KB |
Output isn't correct |
4 |
Incorrect |
0 ms |
1156 KB |
Output isn't correct |
5 |
Incorrect |
0 ms |
1156 KB |
Output isn't correct |
6 |
Incorrect |
0 ms |
1156 KB |
Output isn't correct |
7 |
Incorrect |
0 ms |
1156 KB |
Output isn't correct |
8 |
Incorrect |
0 ms |
1152 KB |
Output isn't correct |
9 |
Incorrect |
0 ms |
1156 KB |
Output isn't correct |
10 |
Incorrect |
0 ms |
1152 KB |
Output isn't correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
3 ms |
1156 KB |
Output isn't correct |
2 |
Incorrect |
10 ms |
1160 KB |
Output isn't correct |
3 |
Incorrect |
4 ms |
1156 KB |
Output isn't correct |
4 |
Incorrect |
0 ms |
1152 KB |
Output isn't correct |
5 |
Correct |
4 ms |
1156 KB |
Output is correct |
6 |
Incorrect |
3 ms |
1156 KB |
Output isn't correct |
7 |
Incorrect |
5 ms |
1160 KB |
Output isn't correct |
8 |
Incorrect |
9 ms |
1156 KB |
Output isn't correct |
9 |
Incorrect |
0 ms |
1152 KB |
Output isn't correct |
10 |
Incorrect |
3 ms |
1152 KB |
Output isn't correct |
11 |
Incorrect |
5 ms |
1152 KB |
Output isn't correct |
12 |
Incorrect |
0 ms |
1156 KB |
Output isn't correct |
13 |
Incorrect |
0 ms |
1152 KB |
Output isn't correct |
14 |
Incorrect |
6 ms |
1156 KB |
Output isn't correct |
15 |
Incorrect |
0 ms |
1152 KB |
Output isn't correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
5 ms |
1152 KB |
Output isn't correct |
2 |
Incorrect |
6 ms |
1152 KB |
Output isn't correct |
3 |
Incorrect |
0 ms |
1160 KB |
Output isn't correct |
4 |
Incorrect |
10 ms |
1156 KB |
Output isn't correct |
5 |
Incorrect |
8 ms |
1160 KB |
Output isn't correct |
6 |
Correct |
5 ms |
1156 KB |
Output is correct |
7 |
Incorrect |
0 ms |
1156 KB |
Output isn't correct |
8 |
Incorrect |
0 ms |
1156 KB |
Output isn't correct |
9 |
Incorrect |
0 ms |
1160 KB |
Output isn't correct |
10 |
Incorrect |
6 ms |
1156 KB |
Output isn't correct |
11 |
Incorrect |
7 ms |
1156 KB |
Output isn't correct |
12 |
Incorrect |
0 ms |
1152 KB |
Output isn't correct |
13 |
Incorrect |
0 ms |
1152 KB |
Output isn't correct |
14 |
Incorrect |
0 ms |
1156 KB |
Output isn't correct |
15 |
Incorrect |
3 ms |
1152 KB |
Output isn't correct |