제출 #510213

#제출 시각아이디문제언어결과실행 시간메모리
510213salamhassanTarifa (COCI16_tarifa)C++14
50 / 50
1 ms204 KiB
#include <bits/stdc++.h> using namespace std; int p[10007],n,x,sum; int main() { cin>>x>>n; for (int i=0; i<n; i++) { cin>>p[i]; sum+=p[i]; } sum=(x*(n+1))-sum; cout<<sum; return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...