結果

問題 No.1506 Unbalanced Pocky Game
ユーザー MtSaka
提出日時 2021-05-14 22:16:42
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 785 bytes
コンパイル時間 2,442 ms
コンパイル使用メモリ 179,444 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2024-10-02 01:41:25
合計ジャッジ時間 5,522 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 31 WA * 32
権限があれば一括ダウンロードができます

ソースコード

diff #

//GIVE ME AC!!!!!!!!!!!!!!!!!
#pragma GCC target("avx")
#pragma GCC optimize("O3")
#pragma GCC optimize("unroll-loops")
#include<bits/stdc++.h>
#define ll long long
#define floatset() fixed<<setprecision(15)
#define all(n) n.begin(),n.end()
#define rall(n) n.rbegin(),n.rend()
#define rep(i, s, n) for (ll i = s; i < (ll)(n); i++)
using namespace std;
const int dx[4] = {1, 0, -1, 0};
const int dy[4] = {0, 1, 0, -1};
const ll inf =1e18;
const ll MOD=1000000007;
const ll mod=998244353;
const double pi=acos(-1);
using P=pair<ll,ll>;
int main(){
    ll n;
    cin>>n; 
    ll sum=0;
    ll a[n];
    rep(i,0,n){
        cin>>a[i];
        if(a[i]!=1){
            sum+=a[i];
        }
    }
    if(sum%2){
        cout<<"Alice"<<endl;
    }
    else{
        cout<<"Bob"<<endl;
    }
}
0