結果

問題 No.3460 Chocolate Divide Game
コンテスト
ユーザー applejam
提出日時 2026-03-01 22:13:35
言語 C++23
(gcc 15.2.0 + boost 1.89.0)
コンパイル:
g++-15 -O2 -lm -std=c++23 -Wuninitialized -DONLINE_JUDGE -o a.out _filename_
実行:
./a.out
結果
AC  
実行時間 165 ms / 2,000 ms
コード長 910 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 8,111 ms
コンパイル使用メモリ 380,240 KB
実行使用メモリ 7,972 KB
最終ジャッジ日時 2026-03-01 22:13:48
合計ジャッジ時間 6,625 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 7
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#include <bits/stdc++.h>
#include <atcoder/all>
using namespace std;
using namespace atcoder;
using ll = long long;
using mint = modint998244353;
using vi = vector<int>;
using vvi = vector<vi>;
using vvvi = vector<vvi>;
using vll = vector<ll>;
using vvll = vector<vll>;
using vvvll = vector<vvll>;
using vmi = vector<mint>;
using vvmi = vector<vmi>;
using vvvmi = vector<vvmi>;
#define all(a) (a).begin(), (a).end()
#define rep2(i, m, n) for (int i = (m); i < (n); ++i)
#define rep(i, n) rep2(i, 0, n)
#define drep2(i, m, n) for (int i = (m)-1; i >= (n); --i)
#define drep(i, n) drep2(i, n, 0)

set<ll> st;
void solve(){
    ll n; cin >> n;
    cout << (st.count(n) ? "Bob" : "Alice") << endl;
}

int main(){
    ios::sync_with_stdio(false);
    cin.tie(nullptr);
    ll b = 4;
    while(b-1 <= (ll)2e18){
        st.insert(b-1);
        b*=2;
    }
    int t; cin >> t;
    while(t--)solve();

    return 0;
}
0