結果
| 問題 |
No.3112 Decrement or Mod Game
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-04-19 03:25:14 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 387 bytes |
| コンパイル時間 | 110 ms |
| コンパイル使用メモリ | 11,904 KB |
| 実行使用メモリ | 11,520 KB |
| 最終ジャッジ日時 | 2025-04-19 03:25:20 |
| 合計ジャッジ時間 | 5,087 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 3 |
| other | RE * 65 |
ソースコード
A = int(input().strip())
B = int(input().strip())
# If either number is 1, Alice wins immediately.
if A == 1 or B == 1:
print("Alice")
# Otherwise, if Alice's > Bob's by exactly 1, Bob wins.
elif A - B == 1:
print("Bob")
# Or if Alice's is strictly smaller (and >=2), Bob wins the "race".
elif A < B:
print("Bob")
# In every other case, Alice wins.
else:
print("Alice")