結果

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

ソースコード

diff #

/**
 *   @FileName	a.cpp
 *   @Author	kanpurin
 *   @Created	2021.05.17 18:40:07
**/

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

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