結果

問題 No.2813 Cookie
ユーザー GOTKAKO
提出日時 2024-07-20 06:12:47
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 375 bytes
コンパイル時間 2,082 ms
コンパイル使用メモリ 191,088 KB
最終ジャッジ日時 2025-02-23 16:59:34
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 5 WA * 25
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

int main() {
    ios_base::sync_with_stdio(false);
    cin.tie(nullptr);

    int T; cin >> T;
    while(T--){
        int N; cin >> N;
        int Xor = 0;
        while(N--){
            int a; cin >> a;
            Xor ^= (a+1)/2;
        }
        if(Xor) cout << "Alice" << "\n";
        else cout << "Bob" << "\n";
    }
}
0