# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
339761 | ammar2000 | Tarifa (COCI16_tarifa) | C++17 | 1 ms | 364 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 x,n,m,sum;
int main()
{
cin>>x>>n;
while (n--)
{
cin>>m;
sum+=x;
sum-=m;
}
cout <<sum+x;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |