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