#include <bits/stdc++.h>
using namespace std;
int main(){
int x, n; cin >> x >> n;
int ans = 0, y;
for(int i = 0; i < n; i++){cin >> y; ans += x - y;}
cout << ans << '\n';
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
304 KB |
Output isn't correct |
2 |
Incorrect |
1 ms |
212 KB |
Output isn't correct |
3 |
Incorrect |
0 ms |
212 KB |
Output isn't correct |
4 |
Incorrect |
1 ms |
304 KB |
Output isn't correct |
5 |
Incorrect |
1 ms |
304 KB |
Output isn't correct |
6 |
Incorrect |
1 ms |
300 KB |
Output isn't correct |
7 |
Incorrect |
0 ms |
212 KB |
Output isn't correct |
8 |
Incorrect |
1 ms |
304 KB |
Output isn't correct |
9 |
Incorrect |
1 ms |
212 KB |
Output isn't correct |
10 |
Incorrect |
0 ms |
212 KB |
Output isn't correct |