結果
| 問題 |
No.2666 Decreasing Modulo Nim
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-12-29 19:27:32 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 308 bytes |
| コンパイル時間 | 785 ms |
| コンパイル使用メモリ | 65,776 KB |
| 最終ジャッジ日時 | 2025-02-18 15:20:32 |
|
ジャッジサーバーID (参考情報) |
judge1 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 45 WA * 10 |
ソースコード
// WA
#include <iostream>
int main() {
std::ios::sync_with_stdio(false);
std::cin.tie(nullptr);
int n, m;
std::cin >> n >> m;
int x = 0;
for (int i = 0; i < n; ++i) {
int v;
std::cin >> v;
x ^= v;
}
std::cout << (x ? "Alice" : "Bob") << std::endl;
}