Submission #559521

#TimeUsernameProblemLanguageResultExecution timeMemory
559521kappaTarifa (COCI16_tarifa)C++14
50 / 50
1 ms340 KiB
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define pb push_back #define st first #define nd second #define MOD 1000000007 typedef pair<ll, ll> pii; const ll maxn = 2e3 + 5; ll n, x, sum; int main(){ cin >> x >> n; for (int i = 0; i < n; i++) { sum += x; ll t; cin >> t; sum -= t; } cout << sum + x; }
#Verdict Execution timeMemoryGrader output
Fetching results...