結果

問題 No.2059 Odd Move Nim
ユーザー Yilin FeiYilin Fei
提出日時 2024-01-08 18:30:04
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 402 bytes
コンパイル時間 468 ms
コンパイル使用メモリ 66,496 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-09-27 19:39:05
合計ジャッジ時間 1,704 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 12 WA * 9
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <vector>
#include <string>

int main() {
    std::ios::sync_with_stdio(false);
    std::cin.tie(nullptr);

    // Skip the first input as per the provided code logic
    std::string line;
    std::getline(std::cin, line);

    long x = 0, value;
    while (std::cin >> value) {
        x ^= value;
    }

    std::cout << (x ? "Alice" : "Bob") << std::endl;
    return 0;
}
0