# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
511160 | Mulhamadlah | Tarifa (COCI16_tarifa) | C++14 | 1 ms | 300 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;
ll x,n,a[1000009];
int main()
{
cin>>x>>n;ll sum=0;
for(ll i=0; i<n;i++)
{
cin>>a[i];
sum+=x;
sum-=a[i];
}
cout<<sum+x;
return 0;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |