Submission #167657

#TimeUsernameProblemLanguageResultExecution timeMemory
167657atoizTarifa (COCI16_tarifa)C++14
0 / 50
2 ms504 KiB
#include <bits/stdc++.h> using namespace std; #define FOR(i, a, b) for (int i = a; i <= b; ++i) #define FORA(i, a) for (auto &i : a) #define FORB(i, a, b) for (int i = a; i >= b; --i) #define SZ(a) ((int) a.size()) #define ALL(a) a.begin(), a.end() int main() { ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0); int x, n; cin >> x >> n; int ans = x * (n + 1); FOR(i, 0, x - 1) { int y; cin >> y; ans -= y; } cout << ans << endl; }
#Verdict Execution timeMemoryGrader output
Fetching results...