# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
397489 | Iwanttobreakfree | Tarifa (COCI16_tarifa) | C++98 | 1 ms | 208 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 <iostream>
using namespace std;
int main(){
long long int tot=0,n,m,g;
cin>>g;
cin>>n;
while(n--){
tot+=g;
cin>>m;
int dif=tot-m;
tot=dif;
//cout<<tot<<' ';
}
cout<<tot+g;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |