제출 #1330920

#제출 시각아이디문제언어결과실행 시간메모리
1330920secondaccountmaybeTarifa (COCI16_tarifa)C++20
50 / 50
1 ms344 KiB
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
int main()
{
	ll x,n,p,s;
	cin>>x;
	cin>>n;
	s=x;
	for(ll i=0;i<n;i++)
	{
		cin>>p;
		s+=x-p;
	}
	cout<<s<<endl;
	return 0;
}
#Verdict Execution timeMemoryGrader output
Fetching results...