# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
156228 | mdn2002 | Tarifa (COCI16_tarifa) | C++14 | 2 ms | 384 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;
long long mod=1e9+7;
int main()
{
int x,n;
cin>>x>>n;
int ans=x;
for(int i=0;i<n;i++)
{
int z;
cin>>z;
ans+=x;
ans-=z;
}
cout<<ans;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |