| # | Time | Username | Problem | Language | Result | Execution time | Memory | 
|---|---|---|---|---|---|---|---|
| 208882 | ArKCa | Go (COCI16_go) | C++17 | 5 ms | 376 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>
#define  f1   first
#define  s2   second
#define  pb   push_back
#define  pob  pop_back
#define  int  ll
#define  ll   long long 
#define  PII  pair<int,int> 
#define  N    100005
#define  mod  1000000007
using namespace std;
int t,n,a,b,mx=-1,c,sum,d;
string s,ss;
int32_t main(){	    
	 // freopen("a.gir","r",stdin);
	// freopen("a.cik","w",stdout);
   //
  // 
	scanf("%lld",&t);
	while(t--){
		cin>>s;
		scanf("%lld %lld",&a,&b);
		c=0;
		while(b>=a){
			d=b/a;
			b-=d*(a-2);
			c+=d;	
		}	
		sum+=c;
		if(c>mx){
			mx=c;
			ss=s;
		}
	}
	printf("%lld\n", sum);
	cout<<ss<<endl;
}	
Compilation message (stderr)
| # | Verdict | Execution time | Memory | Grader output | 
|---|---|---|---|---|
| Fetching results... | ||||
