# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
377182 | marat0210 | Tarifa (COCI16_tarifa) | C++14 | 1 ms | 512 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>
using namespace std;
int main()
{
int x;
cin >>x;
int n;
cin >>n;
vector <int> a(n);
for (int i = 0; i < n; ++i) {
cin >>a[i];
}
int sum = x;
for (int i = 0; i < n; ++i) {
sum += x;
sum -= a[i];
}
cout <<sum<<endl;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |