結果

問題 No.3112 Decrement or Mod Game
ユーザー 🦠みどりむし
提出日時 2025-04-19 22:47:30
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 38 ms / 2,000 ms
コード長 298 bytes
コンパイル時間 583 ms
コンパイル使用メモリ 82,040 KB
実行使用メモリ 53,992 KB
最終ジャッジ日時 2025-04-19 22:47:35
合計ジャッジ時間 4,530 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 65
権限があれば一括ダウンロードができます

ソースコード

diff #

a, b = map(int, input().split())

if a == b:
	print("Alice")
elif a == 1:
	print("Alice")
elif a >= b and a % b == 0:
	print("Alice")
elif b >= (a - 1) and b % (a - 1) == 0:
	print("Bob")
elif a < b:
	print("Bob")
elif a > b + 1:
	print("Alice")
elif a == b + 1:
	print("Bob")
else:
	assert False

0