Submission #510213

#TimeUsernameProblemLanguageResultExecution timeMemory
510213salamhassanTarifa (COCI16_tarifa)C++14
50 / 50
1 ms204 KiB
#include <bits/stdc++.h> using namespace std; int p[10007],n,x,sum; int main() { cin>>x>>n; for (int i=0; i<n; i++) { cin>>p[i]; sum+=p[i]; } sum=(x*(n+1))-sum; cout<<sum; return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...