My issue
I always do code editing using the Codechef IDE. However, since a few days it keeps on showing an error ‘Submission Limit Reached’ and then the submit button becomes unresponsive for a few moments. When the button becomes active, then only after a few more attempts the solution is compiled and run. This makes the use of Codechef IDE very frustrating. What is the cause behind this?
My code
#include <iostream>
using namespace std;
int main() {
// your code goes here
int t;
cin>>t;
for(int i=0;i<t;i++){
int a,b,x,y;
cin>>a>>b>>x>>y;
float a_reach = a/x;
float b_reach = b/y;
if(a_reach>b_reach){
cout<<"chef";
}else if(a_reach<b_reach){
cout<<"chefina";
}else{
cout<<"both";
}
cout<<endl;
}
return 0;
}
Problem Link: BUILDINGRACE Problem - CodeChef