結果
| 問題 | No.184 たのしい排他的論理和(HARD) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-07-25 18:48:56 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 140 bytes |
| 記録 | |
| コンパイル時間 | 743 ms |
| コンパイル使用メモリ | 21,280 KB |
| 実行使用メモリ | 22,236 KB |
| 最終ジャッジ日時 | 2026-08-06 11:13:57 |
| 合計ジャッジ時間 | 9,126 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 2 |
| other | AC * 2 WA * 3 TLE * 1 -- * 28 |
ソースコード
n=int(input())
a=list(map(int,input().split()))
b=[0]
for i in a:
x=i
for j in b:
if x^j<x:x^=j
b.append(x)
print(pow(2,len(b)-1))