# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
133650 | forelax | Go (COCI16_go) | C++14 | 3 ms | 404 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;
int main(){
int n;
cin>>n;
int cnt=0;
string asd;
int rez=0;
for(int i = 0,k,m ; i < n ; i ++){
string br;
cin>>br>>k>>m;
if(!i)asd=br;
int x=(m-k)/(k-2)+1;
if(m<k)continue;
rez+=x;
if(x>cnt){
cnt=x;
asd=br;
}
}
cout<<rez<<endl<<asd;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |