Input the response from the judge
int response = Convert . ToInt32 ( Console . ReadLine ( ) ) ; if ( response == - 1 ) { lower_bound = mid + 1 ; } else if ( response == 1 ) { upper_bound = mid - 1 ; } else if ( response == 0 ) { Console . WriteLine ( " Number ▁ guessed ▁ is ▁ : " + mid ) ; break ; } } } }