제출 #1006185

#제출 시각아이디문제언어결과실행 시간메모리
100618512345678Tarifa (COCI16_tarifa)C++17
50 / 50
1 ms352 KiB
#include <bits/stdc++.h>

using namespace std;

int x, n, a, v;

int main()
{
    cin.tie(NULL)->sync_with_stdio(false);
    cin>>x>>n;
    for (int i=1; i<=n; i++) cin>>a, v-=a;
    cout<<v+(n+1)*x;
}
#Verdict Execution timeMemoryGrader output
Fetching results...