# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
46898 | diegogrc | Tarifa (COCI16_tarifa) | C++11 | 2 ms | 608 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.
// Copyright © 2018 Diego Garcia Rodriguez del Campo. All rights reserved.
#include<bits/stdc++.h>
#define MAX 100005
#define optimiza_io cin.tie(0); ios_base::sync_with_stdio(0);
using namespace std;
typedef long long i64;
int X, N , aux, sum;
int main()
{
optimiza_io
cin >> X >> N;
for( int i = 0; i < N; i ++ )
{
cin >> aux;
sum += aux;
}
cout << X * ( N + 1 ) - sum << "\n";
return 0;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |