제출 #397480

#제출 시각아이디문제언어결과실행 시간메모리
397480AlmaTarifa (COCI16_tarifa)C++17
0 / 50
1 ms204 KiB
#include <bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); int x, n, p; cin >> x >> n; int left = x; while (n--) { cin >> p; left -= p + x; } cout << left << '\n'; return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...