結果

問題 No.1506 Unbalanced Pocky Game
ユーザー 🍮かんプリン
提出日時 2021-05-17 18:36:36
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 458 bytes
コンパイル時間 2,045 ms
コンパイル使用メモリ 167,104 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-10-06 21:31:35
合計ジャッジ時間 4,863 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 47 WA * 16
権限があれば一括ダウンロードができます

ソースコード

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 if (now <= a[i]) now = a[i];
        else now = a[i]-1;
    }
    if (now) puts("Alice");
    else puts("Bob");
    return 0;
}
0