Submission #920174

#TimeUsernameProblemLanguageResultExecution timeMemory
920174WhisperTarifa (COCI16_tarifa)C++17
50 / 50
1 ms600 KiB
#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 timeMemoryGrader output
Fetching results...