# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
133170 | Vlatko | Tarifa (COCI16_tarifa) | C++14 | 2 ms | 376 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;
using ll = long long;
using pii = pair<int, int>;
int main() {
ios::sync_with_stdio(false); cin.tie(0);
int x, n, p;
cin >> x >> n;
int cur = 0;
for (int i = 0; i < n; ++i) {
cur += x;
cin >> p;
cur -= p;
}
cur += x;
cout << cur << '\n';
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |