結果
| 問題 | No.3484 Just a Maze Game |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-04-10 13:16:02 |
| 言語 | C++23 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 4 ms / 2,000 ms |
| コード長 | 388 bytes |
| 記録 | |
| コンパイル時間 | 2,281 ms |
| コンパイル使用メモリ | 330,044 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-04-10 13:16:09 |
| 合計ジャッジ時間 | 4,628 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 24 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main(void){
int t;
cin>>t;
while(t--){
int h,w,b,s;
cin>>h>>w>>b>>s;
if(h>w)swap(h,w);
if(h==1){
cout<<"Bob"<<endl;
}else if(h==2){
cout<<(s%2?"Bob":"Alice")<<endl;
}else{
cout<<(s%2&&s<8?"Bob":"Alice")<<endl;
}
}
return 0;
}