結果
| 問題 |
No.184 たのしい排他的論理和(HARD)
|
| コンテスト | |
| ユーザー |
ntuda
|
| 提出日時 | 2025-01-23 19:44:12 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 290 bytes |
| コンパイル時間 | 517 ms |
| コンパイル使用メモリ | 82,256 KB |
| 実行使用メモリ | 260,212 KB |
| 最終ジャッジ日時 | 2025-01-23 19:44:27 |
| 合計ジャッジ時間 | 14,497 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 27 RE * 7 |
ソースコード
N = int(input())
A = list(map(int,input().split()))
cnt = 0
for i in reversed(range(61)):
B = []
tp = 1 << i
A = sorted(list(set(A)))
if A[-1] >= tp:
cnt += 1
a = A.pop()
while A and A[-1] >= tp:
B.append(A.pop() ^ a)
A += B
print(pow(2,cnt))
ntuda