# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
133309 | Zex | Tarifa (COCI16_tarifa) | C++11 | 3 ms | 376 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#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 time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |