# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
165563 | itiam | Go (COCI16_go) | C++11 | 3 ms | 396 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>
#include <algorithm>
#include <cstdio>
using namespace std;
int main(){
int N,x,y,z,Le[73],m,mi=0,uk=0;
string A,Ls[73];
cin >> N;
for (int i=0;i<N;i++){
z=0;
cin >> A;
cin >> x >> y;
while (y>=x){
y-=x;
z+=1;
y+=2;
}
//cout << "z " << z << "\n";
uk+=z;
if (i==0){
m=z;
}
else {
if (z>m){
m=z;
mi=i;
}
}
Le[i]=z;
Ls[i]=A;
}
cout << uk << "\n" << Ls[mi];
return 0;
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |