結果
| 問題 | No.3484 Just a Maze Game |
| コンテスト | |
| ユーザー |
hiromi_ayase
|
| 提出日時 | 2026-03-27 22:38:24 |
| 言語 | C++23 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 4 ms / 2,000 ms |
| コード長 | 886 bytes |
| 記録 | |
| コンパイル時間 | 6,776 ms |
| コンパイル使用メモリ | 374,060 KB |
| 実行使用メモリ | 6,144 KB |
| 最終ジャッジ日時 | 2026-03-27 22:38:41 |
| 合計ジャッジ時間 | 5,321 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 24 |
ソースコード
#include <bits/stdc++.h>
#include <atcoder/all>
using namespace std;
using i32 = int;
using u32 = unsigned int;
using i64 = long long;
using u64 = unsigned long long;
#define FAST_IO \
ios::sync_with_stdio(false); \
cin.tie(0);
const i64 INF = 1001001001001001001;
using Modint = atcoder::static_modint<998244353>;
int main() {
FAST_IO
int T;
cin >> T;
while (T--) {
i64 N, M, B, W;
cin >> N >> M >> B >> W;
if (N > M) {
swap(N, M);
}
// N <= M
if (N == 1) {
cout << "Bob" << endl;
continue;
}
if (N == 2) {
if (W % 2 == 1) {
cout << "Bob" << endl;
} else {
cout << "Alice" << endl;
}
continue;
}
if (W == 3 || W == 5 || W == 7) {
cout << "Bob" << endl;
} else {
cout << "Alice" << endl;
}
// 3k, 3k+2
// 10以上の3k+1
}
}
hiromi_ayase