Submission #510036

#TimeUsernameProblemLanguageResultExecution timeMemory
510036MusSan07Tarifa (COCI16_tarifa)C++17
50 / 50
1 ms204 KiB
#include <bits/stdc++.h> #define ll long long #define endl "\n" using namespace std; pair<int , int>p[100007]; ll n,k,x,sum,z; int main() { ios::sync_with_stdio(0); cin.tie(0); cout.tie(0); cin>>x>>k; ll a[k]; for(int i=0;i<k;i++){ cin>>a[i]; sum+=a[i]; } z=x*(k+1); cout<<z-sum; return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...