結果

問題 No.183 たのしい排他的論理和(EASY)
ユーザー kokatsu
提出日時 2021-12-14 22:58:59
言語 D
(dmd 2.109.1)
結果
WA  
実行時間 -
コード長 298 bytes
コンパイル時間 2,444 ms
コンパイル使用メモリ 209,756 KB
実行使用メモリ 14,008 KB
最終ジャッジ日時 2024-06-22 13:41:23
合計ジャッジ時間 9,123 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 3 WA * 2 TLE * 1 -- * 12
権限があれば一括ダウンロードができます

ソースコード

diff #

import std;

void main() {
    int N;
    readf("%d\n", N);

    auto A = readln.chomp.split.to!(int[]);

    bool[int] list;
    list[0] = true;
    foreach (a; A) {
        auto key = list.byKey;
        foreach (k; key) {
            list[k^a] = true;
        }
    }

    list.length.writeln;
}
0