結果
| 問題 |
No.1506 Unbalanced Pocky Game
|
| コンテスト | |
| ユーザー |
se1ka2
|
| 提出日時 | 2021-05-14 22:20:11 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 335 bytes |
| コンパイル時間 | 547 ms |
| コンパイル使用メモリ | 65,152 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-10-02 01:48:44 |
| 合計ジャッジ時間 | 3,654 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 51 WA * 12 |
ソースコード
#include <iostream>
using namespace std;
int main()
{
int n;
cin >> n;
int a[200005];
for(int i = 0; i < n; i++) cin >> a[i];
bool first = true;
for(int i = n - 1; i >= 0; i--){
if(a[i] != 1) break;
first = !first;
}
if(first) cout << "Alice" << endl;
else cout << "Bob" << endl;
}
se1ka2