# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
44381 | JustInCase | Tarifa (COCI16_tarifa) | C++17 | 2 ms | 948 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 endl '\n'
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(nullptr);
int32_t x, n;
cin >> x >> n;
int32_t curr = 0;
for(int32_t i = 1; i <= n; i++) {
curr += x;
int32_t p;
cin >> p;
curr -= p;
}
cout << curr + x << endl;
return 0;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |