結果
| 問題 | No.1506 Unbalanced Pocky Game |
| コンテスト | |
| ユーザー |
🍮かんプリン
|
| 提出日時 | 2021-05-17 18:32:17 |
| 言語 | C++14 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 419 bytes |
| 記録 | |
| コンパイル時間 | 891 ms |
| コンパイル使用メモリ | 184,120 KB |
| 実行使用メモリ | 7,972 KB |
| 最終ジャッジ日時 | 2026-04-23 08:05:30 |
| 合計ジャッジ時間 | 3,358 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 1 |
| other | AC * 34 WA * 29 |
ソースコード
/**
* @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;
}
🍮かんプリン