結果

問題 No.698 ペアでチームを作ろう
ユーザー lllllll88938494
提出日時 2022-09-22 20:43:23
言語 PyPy3
(7.3.15)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 229 bytes
コンパイル時間 394 ms
コンパイル使用メモリ 81,920 KB
実行使用メモリ 77,056 KB
最終ジャッジ日時 2024-12-22 05:02:31
合計ジャッジ時間 7,375 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 11 WA * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

from random import shuffle
n=int(input())
a=list(map(int,input().split()))
ans=0
for i in range(300000):
    shuffle(a)
    cnt=0
    for i in range(0,n,2):
        cnt+= a[i]^a[i+1]

    ans=max(ans,cnt)
        
print(ans)     
0