Submission #498613

#TimeUsernameProblemLanguageResultExecution timeMemory
498613ahmeterenTarifa (COCI16_tarifa)C++17
50 / 50
1 ms332 KiB
#include <bits/stdc++.h> using namespace std; const int N = 2e5 + 5; int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); int n, k, cevap; cin >> k >> n; cevap = k; for(int i = 0; i < n; i++) { int x; cin >> x; cevap += k; cevap -= x; } cout << cevap << '\n'; return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...