結果
| 問題 | No.184 たのしい排他的論理和(HARD) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-07-25 18:48:56 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 140 bytes |
| 記録 | |
| コンパイル時間 | 339 ms |
| コンパイル使用メモリ | 20,952 KB |
| 実行使用メモリ | 39,460 KB |
| 最終ジャッジ日時 | 2026-03-25 20:50:39 |
| 合計ジャッジ時間 | 135,245 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 2 |
| other | AC * 9 WA * 3 TLE * 22 |
ソースコード
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))