# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
133284 |
2019-07-20T11:05:05 Z |
tdwn |
Tarifa (COCI16_tarifa) |
C++17 |
|
2 ms |
376 KB |
#include <bits/stdc++.h>
#define ll long long
using namespace std;
ll arr[110], n, x;
int main() {
ll sum = 0LL;
cin>>x>>n;
for(int i=1;i<=n;i++) {
cin>>arr[i];
sum += x; sum -= arr[i];
}
cout<<sum+x<<"\n";
return 0;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
2 ms |
376 KB |
Output is correct |
2 |
Correct |
2 ms |
376 KB |
Output is correct |
3 |
Correct |
2 ms |
376 KB |
Output is correct |
4 |
Correct |
2 ms |
256 KB |
Output is correct |
5 |
Correct |
2 ms |
360 KB |
Output is correct |
6 |
Correct |
2 ms |
376 KB |
Output is correct |
7 |
Correct |
2 ms |
376 KB |
Output is correct |
8 |
Correct |
2 ms |
376 KB |
Output is correct |
9 |
Correct |
2 ms |
256 KB |
Output is correct |
10 |
Correct |
2 ms |
256 KB |
Output is correct |