結果

問題 No.2813 Cookie
ユーザー pia019
提出日時 2024-07-19 22:54:08
言語 C++23
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 571 bytes
コンパイル時間 2,977 ms
コンパイル使用メモリ 242,780 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-07-19 22:54:13
合計ジャッジ時間 4,934 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 2 WA * 28
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>
//#include<atcoder/all>
using namespace std;
typedef long long ll;
using Graph = vector<vector<int>>;
const int INF = 1<<30;
const ll INFLL = 1LL<<60;
const int MOD = 998244353;  //1000000007;

int main() {
    int t; cin >> t;
    while (t--){
        int n; cin >> n;
        //vector<ll> a(n);
        int odd_num = 0;
        for (int i = 0; i < n; i++){
            int a; cin >> a;
            if (a > 2 && a % 2) odd_num++;
            //cout << sign << endl;
        }
        cout << ((n + odd_num) % 2 ? "Alice" : "Bob") << endl;
    }
}
0