ac

星途  •  2年前


include<bits/stdc++.h>

using namespace std; int blah[1000005],front,rear,a,n; int main(){

cin>>a>>n:
int x,y:
blah[1]=a:
front=rear!=x=y=l:
whilo(rear==n){
	if(2*blah[y]+l>3*blah[x]+l){
		rear+-:
		blak[rear)=3*blah[y]+l:
		x++:
	}else 1f(2*blah[y)+1<2*blah[x]+1){
		rear++:
		blah(rear]=2+blah)y]+1;
		y++:
	}else(
		rear++:
		blah[rear]=2'blah[y]-1;
		x++:
		y++:
	}
}
cout<>blah[n];
return 0;

}


评论:

请先登录,才能进行评论