# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
559521 | kappa | Tarifa (COCI16_tarifa) | C++14 | 1 ms | 340 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;
typedef long long ll;
#define pb push_back
#define st first
#define nd second
#define MOD 1000000007
typedef pair<ll, ll> pii;
const ll maxn = 2e3 + 5;
ll n, x, sum;
int main(){
cin >> x >> n;
for (int i = 0; i < n; i++)
{
sum += x;
ll t;
cin >> t;
sum -= t;
}
cout << sum + x;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |