結果
| 問題 | No.2059 Odd Move Nim |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-08-31 17:51:41 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
AC
|
| 実行時間 | 62 ms / 2,000 ms |
| コード長 | 603 bytes |
| 記録 | |
| コンパイル時間 | 584 ms |
| コンパイル使用メモリ | 139,256 KB |
| 実行使用メモリ | 16,256 KB |
| 最終ジャッジ日時 | 2026-07-05 14:11:38 |
| 合計ジャッジ時間 | 2,498 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 21 |
ソースコード
#include<iostream>
#include<string>
#include<queue>
#include<vector>
#include<cassert>
#include<random>
#include<set>
#include<map>
#include<cassert>
#include<unordered_map>
#include<bitset>
#include<numeric>
#include<algorithm>
using namespace std;
typedef long long ll;
const int inf=1<<30;
const ll INF=1LL<<62;
typedef pair<int,ll> P;
typedef pair<int,P> PP;
const ll MOD=998244353;
int main(){
int N;
cin>>N;
vector<int> A(N);
for(int i=0;i<N;i++){
cin>>A[i];
}
int x=0;
for(int i=1;i<N;i+=2){
x^=A[i];
}
cout<<(x!=0?"Alice":"Bob")<<endl;
}