# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
43330 | Hassoony | Tarifa (COCI16_tarifa) | C++14 | 2 ms | 752 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;
typedef long long ll;
const int MX=3e5+9;
int n,x,a,megab;
int main(){
scanf("%d%d",&x,&n);
megab=x;
while(n--){
scanf("%d",&a);
megab-=a;
megab+=x;
}
cout<<megab<<endl;
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |