← 返回 bytedance 的题目列表Countdown Application
类型:online_judge
Design and implement a simple countdown application. The application should allow the user to set a countdown timer and notify when the countdown finishes.
Requirements:
The user can set the countdown in minutes and seconds.
During the countdown, it should display the remaining time.
Upon completion, the application should print or display a message such as "Time's Up!".
Test Cases:
Input: Set countdown for 1 minute; Output after completion: "Time's Up!"
Input: Set countdown for 30 seconds; Output after completion: "Time's Up!"
Input: Set countdown for 2 minutes 30 seconds; Output after completion: "Time's Up!"
Example
Input
2
1 0