제출 #292957

#제출 시각아이디문제언어결과실행 시간메모리
2929577_7_7Tarifa (COCI16_tarifa)C++17
50 / 50
1 ms384 KiB
#include <bits/stdc++.h> using namespace std; int main() { ios_base::sync_with_stdio(false); int x; cin >> x; int n; cin >> n; int sum = 0; for(int i = 1; i <= n; i ++){ int y; cin >> y; sum += y; } cout << x * (n + 1) - sum << "\n"; }
#Verdict Execution timeMemoryGrader output
Fetching results...