結果

問題 No.699 ペアでチームを作ろう2
ユーザー lllllll88938494lllllll88938494
提出日時 2022-09-23 21:41:54
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 664 ms / 1,000 ms
コード長 228 bytes
コンパイル時間 334 ms
コンパイル使用メモリ 82,432 KB
実行使用メモリ 77,184 KB
最終ジャッジ日時 2024-06-01 18:33:54
合計ジャッジ時間 9,924 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 292 ms
76,672 KB
testcase_01 AC 289 ms
76,800 KB
testcase_02 AC 541 ms
76,928 KB
testcase_03 AC 189 ms
76,544 KB
testcase_04 AC 598 ms
76,928 KB
testcase_05 AC 663 ms
76,928 KB
testcase_06 AC 658 ms
76,672 KB
testcase_07 AC 639 ms
77,056 KB
testcase_08 AC 629 ms
77,184 KB
testcase_09 AC 642 ms
76,928 KB
testcase_10 AC 644 ms
77,056 KB
testcase_11 AC 649 ms
77,184 KB
testcase_12 AC 664 ms
76,800 KB
testcase_13 AC 664 ms
77,056 KB
testcase_14 AC 636 ms
76,928 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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