Submission #510054

#TimeUsernameProblemLanguageResultExecution timeMemory
510054M_sawas_Tarifa (COCI16_tarifa)C++17
50 / 50
1 ms292 KiB
#include <bits/stdc++.h> #define ll long long #define endl "\n" using namespace std; ll x,n,a[107],sum; int main() { cin>>x>>n; sum=x*(n+1); for(int i=0;i<n;i++){ cin>>a[i]; sum-=a[i]; } cout<<sum; return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...