| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 | 
|---|---|---|---|---|---|---|---|
| 1266165 | canhnam357 | Tarifa (COCI16_tarifa) | C++20 | 0 ms | 328 KiB | 
#include <bits/stdc++.h>
using namespace std;
#define int long long
#define all(x) x.begin(), x.end()
int32_t main()
{
	ios_base::sync_with_stdio(false);
	cin.tie(0);
	int x, n;
	cin >> x >> n;
	x *= (n + 1);
	for (int i = 0; i < n; i++)
	{
		int p;
		cin >> p;
		x -= p;
	}
	cout << x;
	return 0;
}
| # | Verdict | Execution time | Memory | Grader output | 
|---|---|---|---|---|
| Fetching results... | ||||
