제출 #133309

#제출 시각아이디문제언어결과실행 시간메모리
133309ZexTarifa (COCI16_tarifa)C++11
50 / 50
3 ms376 KiB
#include<bits/stdc++.h> using namespace std; #define LL long long #define INF INT_MAX #define output for(int i=0;i<sizex;i++) { for(int j=0;j<sizey;j++) { cout << moveChart[i][j] << " "; }cout<<endl; }cout<<endl; int X, N; int main(){ ios::sync_with_stdio(false); cin.tie(0); cout.tie(0); cin >> X >> N; int saved = (N+1)*X; int x; while( N-- ){ cin >> x; saved -= x; } cout << saved << endl; }
#Verdict Execution timeMemoryGrader output
Fetching results...