# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1244315 | minhpk | Tarifa (COCI16_tarifa) | C++20 | 1 ms | 328 KiB |
#include <bits/stdc++.h>
#define int long long
using namespace std;
signed main()
{
ios_base::sync_with_stdio(false);
cin.tie(NULL);
int k,a;
cin >> k >> a;
int res=0;
for (int i=1;i<=a;i++){
res+=k;
int x;
cin >> x;
res-=x;
}
res+=k;
cout << res << "\n";
return 0;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |