Submission #133650

#TimeUsernameProblemLanguageResultExecution timeMemory
133650forelaxGo (COCI16_go)C++14
50 / 50
3 ms404 KiB
#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 timeMemoryGrader output
Fetching results...