Submission #397480

#TimeUsernameProblemLanguageResultExecution timeMemory
397480AlmaTarifa (COCI16_tarifa)C++17
0 / 50
1 ms204 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 -= p + x;
    }
    cout << left << '\n';
    return 0;
}
#Verdict Execution timeMemoryGrader output
Fetching results...