# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1089080 | vjudge1 | Tarifa (COCI16_tarifa) | C++17 | 1 ms | 604 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;
#define forn(i,a,b) for(int i = a; i < b; i++)
typedef long long ll;
int main(){
ll x; cin>>x;
ll n; cin>>n;
ll aux;
ll sum; sum=0;
forn(i,0,n){
cin>>aux; sum+=aux;
}
cout<<x*n - sum + x << '\n';
return 0;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |