定義 -> 輸入 -> while(生命值大於0) {判斷} -> 輸出
代碼連結: https://github.com/ImAcheng/Zerojudge/blob/main/q836.cpp
輸入部分的代碼有點醜是因為測試東西忘記改了