Submission #397481

#TimeUsernameProblemLanguageResultExecution timeMemory
397481AlmaTarifa (COCI16_tarifa)C++17
50 / 50
1 ms208 KiB
#include <bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); int x, n, p; cin >> x >> n; int left = x; while (n--) { cin >> p; left = left - p + x; } cout << left << '\n'; return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...