Submission #156228

#TimeUsernameProblemLanguageResultExecution timeMemory
156228mdn2002Tarifa (COCI16_tarifa)C++14
50 / 50
2 ms384 KiB
#include<bits/stdc++.h> using namespace std; long long mod=1e9+7; int main() { int x,n; cin>>x>>n; int ans=x; for(int i=0;i<n;i++) { int z; cin>>z; ans+=x; ans-=z; } cout<<ans; }
#Verdict Execution timeMemoryGrader output
Fetching results...