Submission #595333

#TimeUsernameProblemLanguageResultExecution timeMemory
595333Trisanu_DasTarifa (COCI16_tarifa)C++17
50 / 50
1 ms212 KiB
#include <bits/stdc++.h> using namespace std; int main(){ int x, n; cin >> x >> n; int ans = 0, y; for(int i = 0; i < n; i++){cin >> y; ans += y;} cout << (n + 1) * x - ans << '\n'; }
#Verdict Execution timeMemoryGrader output
Fetching results...