# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
86188 | MatesV13 | Tarifa (COCI16_tarifa) | C++11 | 3 ms | 648 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;
long long x,y,n;
int main (){
ios::sync_with_stdio(0);
cin.tie(0);
cin >> x;
cin >> n;
x = (n+1)*x;
for (int i=0;i<n;i++){
cin >> y;
x = x - y;
}
cout << x;
return 0;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |