Submission #238860

#TimeUsernameProblemLanguageResultExecution timeMemory
238860iliaMTarifa (COCI16_tarifa)C++17
50 / 50
5 ms384 KiB
#include <bits/stdc++.h> using namespace std; #ifndef HELLO_PEOPLE #define cerr if(0) cout #endif int main() { ios::sync_with_stdio(false); cin.tie(nullptr); int x, n; cin >> x >> n; long long sum = x; for (int i = 0; i < n; i++) { int a; cin >> a; sum -= a; sum += x; } cout << sum; return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...