結果
| 問題 | No.3484 Just a Maze Game |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-05-12 20:27:04 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 462 bytes |
| 記録 | |
| コンパイル時間 | 160 ms |
| コンパイル使用メモリ | 85,504 KB |
| 実行使用メモリ | 81,920 KB |
| 最終ジャッジ日時 | 2026-05-12 20:27:07 |
| 合計ジャッジ時間 | 2,118 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 17 WA * 7 |
ソースコード
for _ in range(int(input())):
N, M, B, W = (int(x) for x in input().split())
if N > M:
N, M = M, N
if N == 1:
print("Bob")
elif W >= M * 2 + (N - 2) * 2:
print("Alice")
elif W % 2 == 0:
print("Alice")
else:
for s in range(2, N + 1):
if W // s <= M and (W % s == 0 or W % s > 1 and W // s < M):
print("Alice")
break
else:
print("Bob")