Notes
This function is in beta test. Please help improve it in the issues
here.
Hints
Your answer may be identical to the JOJ answer in the first several lines.
However, the main problem you meet now is Time Exceeded. And the exit code of your program is -9, which should be 0.
Please double check your code to solve this problem and try again.
Your Answer
A new number has been generated. Guess the secret number between 1 and 100. Enter guess: Too high; Try again. Enter guess: Too high; Try again. Enter guess: Too high; Try again. Enter guess: Too high; Try again. Enter guess: Too high; Try again. Enter guess: Too high; Try again. Enter guess: Too high; Try again. Enter guess: Too high; Try again. Enter guess: Too high; Try again. Enter guess: Too high, you lost in 10 guesses! A new number has been generated. Guess the secret number between 1 and 100. Enter guess: Too high; Try again. Enter guess: Too high; Try again. Enter guess: Too high; Try again. Enter guess: Too high; Try again. Enter guess: Too high; Try again. Enter guess: Too high; Try again. Enter guess: Too high; Try again. Enter guess: Too high; Try again. Enter guess: Too high; Try again. Enter guess: Too high, you lost in 10 guesses! A new number has been generated. Guess the secret number between 1 and 100. Enter guess: Too high; Try again. Enter guess: Too high; Try again. Enter guess: Too high;
JOJ Answer
A new number has been generated. Guess the secret number between 1 and 100. Enter guess: Too low; Try again. Enter guess: Too high; Try again. Enter guess: Too high; Try again. Enter guess: You won in 4 guesses! Play again (Y/N): A new number has been generated. Guess the secret number between 1 and 100. Enter guess: Too low; Try again. Enter guess: Too low; Try again. Enter guess: Too high; Try again. Enter guess: Too low; Try again. Enter guess: You won in 5 guesses! Play again (Y/N):