Submission #1006185

#TimeUsernameProblemLanguageResultExecution timeMemory
100618512345678Tarifa (COCI16_tarifa)C++17
50 / 50
1 ms352 KiB
#include <bits/stdc++.h> using namespace std; int x, n, a, v; int main() { cin.tie(NULL)->sync_with_stdio(false); cin>>x>>n; for (int i=1; i<=n; i++) cin>>a, v-=a; cout<<v+(n+1)*x; }
#Verdict Execution timeMemoryGrader output
Fetching results...