n=int(input())
m=int(input())
n*=(m+1)
for i in range (m):
n-=int(input())
print(n)
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
26 ms |
3556 KB |
Output is correct |
2 |
Correct |
26 ms |
3300 KB |
Output is correct |
3 |
Correct |
27 ms |
3300 KB |
Output is correct |
4 |
Correct |
26 ms |
3300 KB |
Output is correct |
5 |
Correct |
26 ms |
3300 KB |
Output is correct |
6 |
Correct |
25 ms |
3292 KB |
Output is correct |
7 |
Correct |
25 ms |
3300 KB |
Output is correct |
8 |
Correct |
26 ms |
3300 KB |
Output is correct |
9 |
Correct |
25 ms |
3300 KB |
Output is correct |
10 |
Correct |
26 ms |
3300 KB |
Output is correct |