Submission #88758

#TimeUsernameProblemLanguageResultExecution timeMemory
88758someone_aaTarifa (COCI16_tarifa)C++17
50 / 50
3 ms592 KiB
#include <bits/stdc++.h> #define ll long long #define pb push_back #define mp make_pair using namespace std; const int maxn = 110; ll sum = 0LL, n, x; ll arr[maxn]; int main() { cin>>x>>n; for(int i=1;i<=n;i++) { cin>>arr[i]; sum += x; sum -= arr[i]; } cout<<sum+x<<"\n"; return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...