結果
問題 | No.1506 Unbalanced Pocky Game |
ユーザー |
|
提出日時 | 2021-05-14 22:14:55 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 66 ms / 2,000 ms |
コード長 | 291 bytes |
コンパイル時間 | 2,221 ms |
コンパイル使用メモリ | 193,812 KB |
最終ジャッジ日時 | 2025-01-21 11:20:19 |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 63 |
ソースコード
#include<bits/stdc++.h> #define int long long using namespace std; signed main(){ int N; cin>>N; vector<bool>ok(N+1,true); ok[0]=false; for(int i=0;i<N;i++){ int a; cin>>a; if(a==1){ ok[i+1]=!ok[i]; } } puts(ok[N]?"Alice":"Bob"); }