# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
88758 | someone_aa | Tarifa (COCI16_tarifa) | C++17 | 3 ms | 592 KiB |
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 <bits/stdc++.h>
#define ll long long
#define pb push_back
#define mp make_pair
using namespace std;
const int maxn = 110;
ll sum = 0LL, n, x;
ll arr[maxn];
int main() {
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 |
---|---|---|---|---|
Fetching results... |