QOJ.ac

QOJ

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

#14512. Giải đấu cầu lông

統計

Alice và Bob đang chơi cầu lông.

Điều kiện thắng mỗi ván cầu lông như sau:

  • Nếu đạt được ít nhất 21 điểm và dẫn trước đối thủ ít nhất 2 điểm, thì thắng.
  • Nếu đạt được 30 điểm, thì thắng.

Cho tỉ số hiện tại là $a : b$, trong đó Alice có $a$ điểm và Bob có $b$ điểm. Với tư cách là trọng tài của trận đấu, hãy xác định xem đã có ai thắng cuộc hay chưa.

Dữ liệu vào

Dòng duy nhất chứa hai số nguyên không âm $a, b$ ($0 \le a, b \le 30$), lần lượt biểu thị điểm số của Alice và Bob. Đảm bảo rằng tỉ số được cho là tỉ số có thể xảy ra trong quá trình thi đấu.

Dữ liệu ra

Nếu Alice đã thắng, in ra Alice. Nếu Bob đã thắng, in ra Bob. Nếu chưa có ai thắng, in ra Underway.

Ví dụ

Dữ liệu vào 1

21 15

Dữ liệu ra 1

Alice

Dữ liệu vào 2

29 30

Dữ liệu ra 2

Bob

Dữ liệu vào 3

22 21

Dữ liệu ra 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.