QOJ.ac

QOJ

حد الوقت: 1.0 s حد الذاكرة: 1024 MB مجموع النقاط: 100 قابلة للهجوم ✓

#14512. 羽球比赛

الإحصائيات

Alice と Bob がバドミントンの試合をしています。 バドミントンの各ゲームの勝利条件は以下の通りです。

  • 21点以上を獲得し、かつ相手より2点以上リードしている場合、勝利となる。
  • 30点に到達した場合、勝利となる。

現在のスコア $a : b$ が与えられます。ここで Alice の得点は $a$、Bob の得点は $b$ です。試合の審判として、どちらかがすでに勝利しているかどうかを判定してください。

入力

1行に2つの非負整数 $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.