# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
920174 | Whisper | Tarifa (COCI16_tarifa) | C++17 | 1 ms | 600 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;
#pragma GCC optimize("Ofast")
using ll = long long;
int main(){
ll x, n;
cin >> x >> n;
ll res = 0;
while ( n-- ){
ll val; cin >> val;
res += x - val;
}
cout << x + res;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |