Submission #377182

#TimeUsernameProblemLanguageResultExecution timeMemory
377182marat0210Tarifa (COCI16_tarifa)C++14
50 / 50
1 ms512 KiB
#include <bits/stdc++.h> using namespace std; int main() { int x; cin >>x; int n; cin >>n; vector <int> a(n); for (int i = 0; i < n; ++i) { cin >>a[i]; } int sum = x; for (int i = 0; i < n; ++i) { sum += x; sum -= a[i]; } cout <<sum<<endl; }
#Verdict Execution timeMemoryGrader output
Fetching results...