Submission #86188

#TimeUsernameProblemLanguageResultExecution timeMemory
86188MatesV13Tarifa (COCI16_tarifa)C++11
50 / 50
3 ms648 KiB
#include <bits/stdc++.h> using namespace std; long long x,y,n; int main (){ ios::sync_with_stdio(0); cin.tie(0); cin >> x; cin >> n; x = (n+1)*x; for (int i=0;i<n;i++){ cin >> y; x = x - y; } cout << x; return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...