結果

問題 No.183 たのしい排他的論理和(EASY)
ユーザー kokatsukokatsu
提出日時 2021-12-14 22:58:59
言語 D
(dmd 2.106.1)
結果
WA  
実行時間 -
コード長 298 bytes
コンパイル時間 2,126 ms
コンパイル使用メモリ 204,044 KB
実行使用メモリ 8,752 KB
最終ジャッジ日時 2023-09-04 15:19:54
合計ジャッジ時間 9,108 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,380 KB
testcase_01 AC 1 ms
4,380 KB
testcase_02 WA -
testcase_03 AC 2 ms
4,380 KB
testcase_04 AC 1 ms
4,380 KB
testcase_05 WA -
testcase_06 AC 1 ms
4,380 KB
testcase_07 TLE -
testcase_08 -- -
testcase_09 -- -
testcase_10 -- -
testcase_11 -- -
testcase_12 -- -
testcase_13 -- -
testcase_14 -- -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
権限があれば一括ダウンロードができます

ソースコード

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