結果
| 問題 |
No.2059 Odd Move Nim
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-08-26 23:16:17 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 291 bytes |
| コンパイル時間 | 1,955 ms |
| コンパイル使用メモリ | 192,904 KB |
| 最終ジャッジ日時 | 2025-01-31 05:37:52 |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 11 WA * 10 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
int main(){
ios::sync_with_stdio(false);
cin.tie(nullptr);
int N;
cin>>N;
vector<int>A(N);
for(int &i:A)cin>>i;
int od=0;
for(int i=0;i<N;i+=2)od^=A[i];
bool fwin=false;
if(od!=0)fwin=true;
cout<<(fwin?"Alice\n":"Bob\n");
}