# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
23999 | Trathz | Tarifa (COCI16_tarifa) | C++98 | 0 ms | 2020 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 F first
#define S second
#define int long long
#define mp make_pair
#define pb push_back
#define pii pair<int, int>
#define ieps (int) 1e5 + 800
#define eps (int) 1e9
#define jmp exit(0)
int32_t main(){
int n;
cin>>n;
int q;
int atual = 0;
cin>>q;
while(q--){
atual+=n;
int x;
cin>>x;
atual = (atual - x);
}
cout<<atual + n;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |