# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
510036 | MusSan07 | Tarifa (COCI16_tarifa) | C++17 | 1 ms | 204 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>
#define ll long long
#define endl "\n"
using namespace std;
pair<int , int>p[100007];
ll n,k,x,sum,z;
int main()
{
ios::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
cin>>x>>k;
ll a[k];
for(int i=0;i<k;i++){
cin>>a[i];
sum+=a[i];
}
z=x*(k+1);
cout<<z-sum;
return 0;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |