結果

問題 No.1506 Unbalanced Pocky Game
ユーザー MtSakaMtSaka
提出日時 2021-05-14 22:12:27
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 816 bytes
コンパイル時間 2,410 ms
コンパイル使用メモリ 180,528 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-04-10 00:30:17
合計ジャッジ時間 5,411 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 AC 2 ms
6,944 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 AC 11 ms
6,940 KB
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 AC 7 ms
6,940 KB
testcase_20 AC 24 ms
6,944 KB
testcase_21 AC 10 ms
6,944 KB
testcase_22 WA -
testcase_23 WA -
testcase_24 WA -
testcase_25 WA -
testcase_26 AC 58 ms
6,940 KB
testcase_27 WA -
testcase_28 WA -
testcase_29 AC 57 ms
6,940 KB
testcase_30 AC 58 ms
6,944 KB
testcase_31 WA -
testcase_32 AC 58 ms
6,940 KB
testcase_33 AC 57 ms
6,944 KB
testcase_34 WA -
testcase_35 WA -
testcase_36 AC 2 ms
6,944 KB
testcase_37 WA -
testcase_38 AC 2 ms
6,940 KB
testcase_39 AC 2 ms
6,940 KB
testcase_40 WA -
testcase_41 WA -
testcase_42 AC 2 ms
6,940 KB
testcase_43 WA -
testcase_44 WA -
testcase_45 AC 2 ms
6,940 KB
testcase_46 WA -
testcase_47 WA -
testcase_48 WA -
testcase_49 AC 24 ms
6,940 KB
testcase_50 WA -
testcase_51 WA -
testcase_52 WA -
testcase_53 AC 28 ms
6,940 KB
testcase_54 WA -
testcase_55 AC 8 ms
6,944 KB
testcase_56 WA -
testcase_57 WA -
testcase_58 AC 8 ms
6,944 KB
testcase_59 AC 5 ms
6,944 KB
testcase_60 AC 13 ms
6,944 KB
testcase_61 WA -
testcase_62 AC 17 ms
6,944 KB
testcase_63 AC 12 ms
6,944 KB
testcase_64 AC 24 ms
6,940 KB
testcase_65 AC 14 ms
6,940 KB
権限があれば一括ダウンロードができます

ソースコード

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 ans=1;
    ll n;
    cin>>n;
    ll a[n];
    rep(i,0,n){
        cin>>a[i];
    }
    for(ll i=n-1;i>=0;i--){
        if(a[i]==1){
            ans=1-ans;
        }
    }
    if(ans){
        cout<<"Alice"<<endl;
    }
    else{
        cout<<"Bob"<<endl;
    }
}
0