| # | Time | Username | Problem | Language | Result | Execution time | Memory | 
|---|---|---|---|---|---|---|---|
| 167936 | ToniB | Go (COCI16_go) | C++14 | 2 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>
using namespace std;
int main(){
    int n;
    cin >> n;
    
    int sol1 = 0, naj = 0;
    string sol2;
    
    for(int i = 0; i < n; ++i){
    	string c;
    	int a, b;
    	
    	cin >> c >> b >> a;
    	
    	int broj = 0;
    	
    	while(a >= b){
    		broj++;
    		a -= b;
    		a += 2;
		}
    	
    	sol1 += broj;
    	
    	if(broj > naj){
    		naj = broj;
    		sol2 = c;
		}
    	
	}
	
	cout << sol1 << endl << sol2;
	return 0;
}
| # | Verdict | Execution time | Memory | Grader output | 
|---|---|---|---|---|
| Fetching results... | ||||
