Submission #167558

#TimeUsernameProblemLanguageResultExecution timeMemory
167558souhhcongTarifa (COCI16_tarifa)C++11
50 / 50
2 ms396 KiB
#include <bits/stdc++.h> using namespace std; const int N = 105; int x, n, a, sum = 0; int main() { cin >> x >> n; for (int i = 0; i < n; i++) { cin >> a; sum += a; } cout << x*(n+1) - sum; }
#Verdict Execution timeMemoryGrader output
Fetching results...