結果
問題 |
No.3112 Decrement or Mod Game
|
ユーザー |
|
提出日時 | 2025-04-19 18:05:51 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
RE
|
実行時間 | - |
コード長 | 358 bytes |
コンパイル時間 | 469 ms |
コンパイル使用メモリ | 11,904 KB |
実行使用メモリ | 11,520 KB |
最終ジャッジ日時 | 2025-04-19 18:05:56 |
合計ジャッジ時間 | 5,379 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | RE * 3 |
other | RE * 65 |
ソースコード
def winner(a, b): turn = 0 while True: if a < b: a, b = b, a turn ^= 1 if b == 0: return "Bob" if turn == 0 else "Alice" if a // b > 1: return "Alice" if turn == 0 else "Bob" a, b = b, a % b turn ^= 1 A = int(input()) B = int(input()) print(winner(A, B))