Feedback for RACE400M problem

Problem Link: RACE400M Problem - CodeChef

Feedback

it shows error even i entered proper code

Initially when I took the max speed of each vehicle i got error in the solution so i slightly switched the contraints to min time required then all the test cases passed. Hope this code helps

using namespace std;

int main() {
// your code goes here
int t; cin>>t;
while(t–){
int X,Y,Z; cin>>X>>Y>>Z;
if(Y>X && Z>X){
cout<<“ALICE”<<endl;
}else if(X>Y && Z>Y){
cout<<“BOB”<<endl;
}else{
cout<<“CHARLIE”<<endl;
}
}
return 0;
}