結果

問題 No.2061 XOR Sort
ユーザー ニックネームニックネーム
提出日時 2022-08-26 23:22:37
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 358 bytes
コンパイル時間 244 ms
コンパイル使用メモリ 82,368 KB
実行使用メモリ 272,968 KB
最終ジャッジ日時 2024-04-22 01:31:07
合計ジャッジ時間 9,688 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 44 ms
51,952 KB
testcase_01 AC 41 ms
52,480 KB
testcase_02 WA -
testcase_03 AC 48 ms
58,752 KB
testcase_04 WA -
testcase_05 AC 49 ms
59,264 KB
testcase_06 AC 51 ms
59,264 KB
testcase_07 AC 45 ms
59,008 KB
testcase_08 AC 40 ms
52,224 KB
testcase_09 AC 45 ms
58,752 KB
testcase_10 AC 42 ms
52,096 KB
testcase_11 AC 41 ms
51,968 KB
testcase_12 AC 46 ms
58,624 KB
testcase_13 WA -
testcase_14 AC 341 ms
197,600 KB
testcase_15 AC 332 ms
196,192 KB
testcase_16 AC 602 ms
271,980 KB
testcase_17 AC 395 ms
210,528 KB
testcase_18 AC 397 ms
211,784 KB
testcase_19 AC 393 ms
210,816 KB
testcase_20 WA -
testcase_21 WA -
testcase_22 AC 341 ms
197,132 KB
testcase_23 WA -
testcase_24 AC 603 ms
272,528 KB
testcase_25 AC 601 ms
272,020 KB
testcase_26 AC 592 ms
272,968 KB
testcase_27 AC 593 ms
272,884 KB
testcase_28 AC 593 ms
272,844 KB
testcase_29 AC 227 ms
153,160 KB
testcase_30 AC 40 ms
51,968 KB
testcase_31 AC 86 ms
77,064 KB
testcase_32 AC 42 ms
52,224 KB
testcase_33 AC 42 ms
51,968 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 = []
for i in range(30):
    b = []
    for v in a:
        if v&2**i: b.append(1)
        else: b.append(0)
    b = tuple(b)
    for c in s:
        f = True
        for u, v in zip(b, c):
            if u > v: f = False; break
        if f: break
    else: s.append(b)
print(pow(2, len(s), 998244353))
0