제출 #225731

#제출 시각아이디문제언어결과실행 시간메모리
225731osaaateiasavtnlTarifa (COCI16_tarifa)C++14
50 / 50
5 ms384 KiB
#include<bits/stdc++.h> using namespace std; #define int long long #define ii pair <int, int> #define app push_back #define all(a) a.begin(), a.end() #define bp __builtin_popcount #define ll long long #define mp make_pair #define f first #define s second #define Time (double)clock()/CLOCKS_PER_SEC signed main() { #ifdef HOME freopen("input.txt", "r", stdin); #else #define endl '\n' ios_base::sync_with_stdio(0); cin.tie(0); #endif int x, n; cin >> x >> n; int ans = x * (n + 1); while (n--) { int t; cin >> t; ans -= t; } cout << ans << endl; }
#Verdict Execution timeMemoryGrader output
Fetching results...