제출 #1297808

#제출 시각아이디문제언어결과실행 시간메모리
1297808kawhietTarifa (COCI16_tarifa)C++20
50 / 50
1 ms576 KiB
#include <bits/stdc++.h> using namespace std; signed main() { ios::sync_with_stdio(false); cin.tie(nullptr); int x, n; cin >> x >> n; int sum = x; for (int i = 0; i < n; i++) { int a; cin >> a; sum = sum + x - a; } cout << sum << '\n'; return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...