# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
86193 | MatesV13 | Go (COCI16_go) | C++11 | 3 ms | 708 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;
long long n, k, m, ci, cmax, cu;
string namei, namemax;
int main (){
ios::sync_with_stdio(0);
cin.tie(0);
cin >> n;
for (int i=0;i<n;i++){
cin >> namei;
cin >> k >> m;
while (m >= k){
m = m - k + 2;
ci++;
}
if (ci > cmax){
cmax = ci;
namemax = namei;
}
cu = cu + ci;
ci = 0;
}
cout << cu << endl << namemax;
return 0;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |