結果
| 問題 | No.3460 Chocolate Divide Game |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-02-28 14:46:02 |
| 言語 | C++23 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 487 ms / 2,000 ms |
| コード長 | 675 bytes |
| 記録 | |
| コンパイル時間 | 2,206 ms |
| コンパイル使用メモリ | 200,416 KB |
| 実行使用メモリ | 11,232 KB |
| 最終ジャッジ日時 | 2026-02-28 14:46:09 |
| 合計ジャッジ時間 | 6,512 ms |
|
ジャッジサーバーID (参考情報) |
judge7 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 7 |
ソースコード
#include <iostream>
#include <iomanip>
#include <vector>
#include <algorithm>
#include <utility>
#include <string>
#include <queue>
#include <stack>
#include <unordered_set>
#include <unordered_map>
using namespace std;
typedef long long int ll;
typedef pair<int, int> Pii;
const ll mod = 998244353;
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
int t;
cin >> t;
vector<ll> n(t);
for (auto &x: n) cin >> x;
vector<string> ans(t);
for (int i = 0; i < t; i++) {
auto v = n[i];
while ((v & 1) != 0) {
v >>= 1;
}
if (v == 0) ans[i] = "Bob";
else ans[i] ="Alice";
}
for (auto &x: ans) cout << x << endl;
return 0;
}