結果
| 問題 | No.3112 Decrement or Mod Game |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-04-19 18:24:04 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 249 bytes |
| 記録 | |
| コンパイル時間 | 392 ms |
| コンパイル使用メモリ | 11,904 KB |
| 実行使用メモリ | 10,496 KB |
| 最終ジャッジ日時 | 2025-04-19 18:24:09 |
| 合計ジャッジ時間 | 5,063 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 1 |
| other | AC * 43 WA * 22 |
ソースコード
def can_win(a, b):
if a < b:
a, b = b, a
if b == 0:
return False
q = a // b
if q > 1:
return True
return not can_win(b, a % b)
A,B = map(int, input().split())
print("Alice" if can_win(A, B) else "Bob")