結果
| 問題 | No.1082 XORのXOR |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-01-28 23:06:06 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 281 bytes |
| 記録 | |
| コンパイル時間 | 1,015 ms |
| コンパイル使用メモリ | 20,696 KB |
| 実行使用メモリ | 21,628 KB |
| 最終ジャッジ日時 | 2026-04-05 06:23:00 |
| 合計ジャッジ時間 | 4,333 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | TLE * 1 -- * 28 |
ソースコード
# O(N!)愚直
n=int(input())
a=list(map(int,input().split()))
from itertools import permutations
ans=0
for aa in permutations(a,n):
b=[]
for i in range(n-1):
b.append(aa[i]^aa[i+1])
m=b[0]
for i in range(1,n-1):
m^=b[i]
ans=max(ans,m)
print(ans)