Submission #511160

#TimeUsernameProblemLanguageResultExecution timeMemory
511160MulhamadlahTarifa (COCI16_tarifa)C++14
50 / 50
1 ms300 KiB
#include <bits/stdc++.h> using namespace std; typedef long long ll; ll x,n,a[1000009]; int main() { cin>>x>>n;ll sum=0; for(ll i=0; i<n;i++) { cin>>a[i]; sum+=x; sum-=a[i]; } cout<<sum+x; return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...