# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
1132648 | DangKhoizzzz | Tarifa (COCI16_tarifa) | C++20 | 1 ms | 328 KiB |
#include <bits/stdc++.h>
#include <bits/stdc++.h>
#define int long long
using namespace std;
int x , n;
void solve()
{
cin >> x >> n;
int ans = x*(n+1);
while(n--)
{
int a; cin >> a;
ans -= a;
}
cout << ans << '\n';
}
signed main()
{
ios_base::sync_with_stdio(false);
cin.tie(0); cout.tie(0);
solve();
return 0;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |