Help me in solving USAINBOLT problem

My issue

According to the sample input in the question my output should be Bolt Tiger. But it is Tiger Bolt and I can’t identify the mistake.

My code

#include <iostream>
using namespace std;

int main() 
{

int T;
cin>>T;

for(int j=1; j<=T; j++)
{
int finish, distancetoBolt,tigerAccelaration,boltSpeed;
float timeb, timet;

cin>>finish;
cin>>distancetoBolt;
cin>>tigerAccelaration;
cin>>boltSpeed;

timeb = finish*1.0/boltSpeed;
timeb = (timeb * timeb * 1.0);

    timet = ((distancetoBolt+finish)*2.0/tigerAccelaration);
   
    if (timeb>timet)
    {cout<<" Bolt "; }
    else
    {cout<<" Tiger ";}
}
return 0;
}

Problem Link: USANBOLT Problem - CodeChef

@bscs23091
Plzz refer the following solution for the better understanding of the logic .

#include <iostream>
#include<math.h>
using namespace std;

int main() {
	int T;
	cin >> T;
	for(int i=1; i<=T; i++){
	    int finish, bolt_dist, acc, speed;
	    cin >> finish >> bolt_dist >> acc >> speed;
	    int dist_tiger = finish + bolt_dist;
	    float time_tiger = sqrt(2 * (float) dist_tiger / (float) acc);
	    float time_bolt = (float) finish / (float) speed;
	    
	    if(time_tiger <= time_bolt){
	        cout << "Tiger" << endl;
	    }
	    else{
	        cout << "Bolt" << endl;
	    }
	}
	return 0;
}