# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
510213 | salamhassan | Tarifa (COCI16_tarifa) | C++14 | 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>
using namespace std;
int p[10007],n,x,sum;
int main()
{
cin>>x>>n;
for (int i=0; i<n; i++)
{
cin>>p[i];
sum+=p[i];
}
sum=(x*(n+1))-sum;
cout<<sum;
return 0;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |