Please check what is the problem in my code, it is passing only 3 test cases out of 6.
https://ide.codingblocks.com/s/371878
Problem in Winning CB Scholarship Problem
bool ismid(int n,int m,int x,int y, int mid){
long long temp=m+1ll*(n-mid)*y; //to avoid overflow
return(1ll*x*mid)<=temp; //to avoid overflow
}
Incase u don’t know , 1ll is 1 long long
1 Like