QOJ.ac

QOJ

Time Limit: 1.0 s Memory Limit: 1024 MB Total points: 100 Hackable ✓

#14512. 배드민턴 경기

Statistics

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.