結果
| 問題 |
No.2059 Odd Move Nim
|
| コンテスト | |
| ユーザー |
Tatsuyaaaa
|
| 提出日時 | 2022-08-26 23:12:16 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 403 bytes |
| コンパイル時間 | 2,062 ms |
| コンパイル使用メモリ | 193,508 KB |
| 最終ジャッジ日時 | 2025-01-31 05:35:50 |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 11 WA * 10 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
#define ll long long
int main() {
ios::sync_with_stdio(0);
cin.tie(0);
int N;
cin >> N;
vector<ll> A(N);
for (int i=0;i<N;i++) cin >> A[i];
ll ans = 0LL;
for (int i=0;i<N;i+=2) {
ans ^= A[i];
}
if (ans == 0) {
cout << "Bob" << "\n";
} else {
cout << "Alice" << "\n";
}
return 0;
}
Tatsuyaaaa