제출 #486382

#제출 시각아이디문제언어결과실행 시간메모리
486382groupATSUTarifa (COCI16_tarifa)C++14
50 / 50
14 ms23776 KiB
#include <bits/stdc++.h> using namespace std; #define ll long long const ll inf=1e9; const int maxn=1e6+10; const ll mod=1e9+7; vector <int> g[maxn]; void solve(){ int x,a; cin>>x>>a; int ans=0; for(int i=0;i<a;i++){ ans+=x; int xx; cin>>xx; ans-=xx; } cout<<ans+x; } int main(){ //ios_base::sync_with_stdio(false); //cin.tie(NULL); int t=1; //cin>>t; while(t--){ solve(); cout<<'\n'; } }
#Verdict Execution timeMemoryGrader output
Fetching results...