Submission #1089080

#TimeUsernameProblemLanguageResultExecution timeMemory
1089080vjudge1Tarifa (COCI16_tarifa)C++17
50 / 50
1 ms604 KiB
#include <bits/stdc++.h> using namespace std; #define forn(i,a,b) for(int i = a; i < b; i++) typedef long long ll; int main(){ ll x; cin>>x; ll n; cin>>n; ll aux; ll sum; sum=0; forn(i,0,n){ cin>>aux; sum+=aux; } cout<<x*n - sum + x << '\n'; return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...