結果

問題 No.2061 XOR Sort
ユーザー ニックネームニックネーム
提出日時 2022-08-26 23:11:28
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 221 bytes
コンパイル時間 126 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 69,308 KB
最終ジャッジ日時 2024-04-22 01:15:35
合計ジャッジ時間 17,820 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 26 ms
10,368 KB
testcase_01 AC 26 ms
10,624 KB
testcase_02 AC 27 ms
10,368 KB
testcase_03 AC 34 ms
10,496 KB
testcase_04 AC 29 ms
10,496 KB
testcase_05 AC 29 ms
10,752 KB
testcase_06 AC 28 ms
10,624 KB
testcase_07 AC 32 ms
10,624 KB
testcase_08 AC 28 ms
10,496 KB
testcase_09 AC 27 ms
10,624 KB
testcase_10 AC 26 ms
10,624 KB
testcase_11 AC 27 ms
10,752 KB
testcase_12 AC 27 ms
10,624 KB
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 AC 155 ms
16,620 KB
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 WA -
testcase_25 WA -
testcase_26 WA -
testcase_27 WA -
testcase_28 WA -
testcase_29 AC 482 ms
25,356 KB
testcase_30 AC 26 ms
10,624 KB
testcase_31 AC 81 ms
12,288 KB
testcase_32 AC 26 ms
10,624 KB
testcase_33 AC 26 ms
10,624 KB
testcase_34 WA -
testcase_35 WA -
testcase_36 WA -
testcase_37 WA -
testcase_38 WA -
testcase_39 WA -
testcase_40 WA -
testcase_41 WA -
testcase_42 WA -
testcase_43 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
a = list(map(int, input().split()))
s = set()
for i in range(30):
    b = []
    for v in a:
        if v&2**i: b.append(1)
        else: b.append(0)
    s.add(tuple(b))
print(pow(2, len(s)-1, 998244353))
0