結果
問題 |
No.2061 XOR Sort
|
ユーザー |
![]() |
提出日時 | 2022-08-26 23:22:37 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 358 bytes |
コンパイル時間 | 373 ms |
コンパイル使用メモリ | 82,200 KB |
実行使用メモリ | 272,836 KB |
最終ジャッジ日時 | 2024-10-14 00:07:12 |
合計ジャッジ時間 | 9,323 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 WA * 1 |
other | AC * 26 WA * 15 |
ソースコード
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))