# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
167922 | ToniB | Tarifa (COCI16_tarifa) | C++14 | 2 ms | 380 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 <iostream>
using namespace std;
int main(){
int sol, n;
cin >> sol >> n;
sol = sol * (n + 1);
for(int i = 0; i < n; ++i){
int a;
cin >> a;
sol -= a;
}
cout << sol;
return 0;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |