結果
問題 | No.184 たのしい排他的論理和(HARD) |
ユーザー |
![]() |
提出日時 | 2025-01-23 19:48:49 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 320 bytes |
コンパイル時間 | 350 ms |
コンパイル使用メモリ | 82,708 KB |
実行使用メモリ | 133,724 KB |
最終ジャッジ日時 | 2025-01-23 19:48:58 |
合計ジャッジ時間 | 6,002 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 3 WA * 8 RE * 23 |
ソースコード
N = int(input())A = list(map(int,input().split()))cnt = 0for i in reversed(range(61)):B = []tp = 1 << iA = sorted(list(set(A)))if A and A[-1] >= tp:cnt += 1a = A.pop()while A and A[-1] >= tp:x = A.pop() ^ aB.append(A.pop() ^ a)A += Bprint(pow(2,cnt))