結果

問題 No.3484 Just a Maze Game
コンテスト
ユーザー ゼット
提出日時 2026-03-27 22:00:57
言語 PyPy3
(7.3.17)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
AC  
実行時間 91 ms / 2,000 ms
コード長 276 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 190 ms
コンパイル使用メモリ 85,568 KB
実行使用メモリ 78,848 KB
最終ジャッジ日時 2026-03-27 22:01:04
合計ジャッジ時間 4,292 ms
ジャッジサーバーID
(参考情報)
judge1_1 / judge3_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 24
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

Q=int(input())
for _ in range(Q):
  N,M,H,W=map(int,input().split())
  if N==3 and M==3 and W==7:
    print('Bob')
    continue
  if N==1 or M==1 or W==3 or W==5 or W==7:
    print('Bob')
  else:
    if min(N,M)==2 and W%2==1:
      print('Bob')
    else:
      print('Alice')
0