Submission #167600

#TimeUsernameProblemLanguageResultExecution timeMemory
167600combi1k1Tarifa (COCI16_tarifa)C++14
50 / 50
2 ms376 KiB
#include<bits/stdc++.h> using namespace std; int main() { ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0); int x; cin >> x; int n; cin >> n; int s = x; for(int i = 0 ; i < n ; ++i) { int p; cin >> p; s += x - p; } cout << s << endl; }
#Verdict Execution timeMemoryGrader output
Fetching results...