# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
167558 | souhhcong | Tarifa (COCI16_tarifa) | C++11 | 2 ms | 396 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;
const int N = 105;
int x, n, a, sum = 0;
int main()
{
cin >> x >> n;
for (int i = 0; i < n; i++)
{
cin >> a;
sum += a;
}
cout << x*(n+1) - sum;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |