結果
| 問題 |
No.2813 Cookie
|
| コンテスト | |
| ユーザー |
Pres1dent
|
| 提出日時 | 2024-07-19 22:13:52 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 312 bytes |
| コンパイル時間 | 2,087 ms |
| コンパイル使用メモリ | 194,856 KB |
| 最終ジャッジ日時 | 2025-02-23 16:37:38 |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 5 WA * 25 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main() {
int t; cin >> t;
while (t--) {
int n; cin >> n;
vector<int> a(n);
int x = 0;
for (int i = 0; i < n; i++) cin >> a[i], x ^= a[i];
if (x == 0) {
cout << "Bob" << endl;
} else {
cout << "Alice" << endl;
}
}
}
Pres1dent