QOJ.ac

QOJ

実行時間制限: 1.0 s メモリ制限: 1024 MB 満点: 100 ハック可能 ✓

#14512. 羽球比賽

統計

Alice 和 Bob 在打羽毛球。 羽毛球每局的獲勝條件如下:

  • 若得到至少 21 分,且領先對手至少 2 分,則獲勝。
  • 若得到 30 分,則獲勝。

給定目前的比分 $a : b$,其中 Alice 得分為 $a$,Bob 得分為 $b$。現在,你作為比賽的裁判,請你判斷是否有人已經獲勝。

輸入格式

輸入一行兩個非負整數 $a, b$ ($0 \le a, b \le 30$),分別表示 Alice 和 Bob 的得分。保證給定的比分是比賽過程中可能出現的。

輸出格式

若 Alice 已獲勝,輸出 Alice,若 Bob 已獲勝,輸出 Bob,若無人已獲勝,輸出 Underway

範例

輸入格式 1

21 15

輸出格式 1

Alice

輸入格式 2

29 30

輸出格式 2

Bob

輸入格式 3

22 21

輸出格式 3

Underway

Discussions

About Discussions

The discussion section is only for posting: General Discussions (problem-solving strategies, alternative approaches), and Off-topic conversations.

This is NOT for reporting issues! If you want to report bugs or errors, please use the Issues section below.

Open Discussions 0
No discussions in this category.

Issues

About Issues

If you find any issues with the problem (statement, scoring, time/memory limits, test cases, etc.), you may submit an issue here. A problem moderator will review your issue.

Guidelines:

  1. This is not a place to publish discussions, editorials, or requests to debug your code. Issues are only visible to you and problem moderators.
  2. Do not submit duplicated issues.
  3. Issues must be filed in English or Chinese only.
Active Issues 0
No issues in this category.
Closed/Resolved Issues 0
No issues in this category.