結果

問題 No.1506 Unbalanced Pocky Game
ユーザー 🍮かんプリン
提出日時 2021-05-17 18:32:17
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 419 bytes
コンパイル時間 1,741 ms
コンパイル使用メモリ 168,648 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2024-10-06 21:24:32
合計ジャッジ時間 4,142 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2 WA * 1
other AC * 34 WA * 29
権限があれば一括ダウンロードができます

ソースコード

diff #

/**
 *   @FileName	a.cpp
 *   @Author	kanpurin
 *   @Created	2021.05.17 18:32:11
**/

#include "bits/stdc++.h" 
using namespace std; 
typedef long long ll;

int main() {
    int n;cin >> n;
    vector<int> a(n);
    int now = 0;
    for (int i = 0; i < n; i++) {
        cin >> a[i];
        if (now == 0) now = a[i];
        else now = a[i]-1;
    }
    if (a[n-1]) puts("Alice");
    else puts("Bob");
    return 0;
}
0