結果

問題 No.699 ペアでチームを作ろう2
ユーザー lllllll88938494lllllll88938494
提出日時 2022-09-23 21:42:19
言語 PyPy3
(7.3.15)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 228 bytes
コンパイル時間 277 ms
コンパイル使用メモリ 86,656 KB
実行使用メモリ 78,732 KB
最終ジャッジ日時 2023-08-23 21:07:59
合計ジャッジ時間 9,304 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 297 ms
78,052 KB
testcase_01 AC 292 ms
78,272 KB
testcase_02 AC 477 ms
78,324 KB
testcase_03 AC 209 ms
78,396 KB
testcase_04 AC 549 ms
78,460 KB
testcase_05 AC 585 ms
78,352 KB
testcase_06 AC 572 ms
78,112 KB
testcase_07 AC 595 ms
78,148 KB
testcase_08 WA -
testcase_09 AC 583 ms
78,140 KB
testcase_10 AC 588 ms
77,884 KB
testcase_11 AC 588 ms
78,116 KB
testcase_12 WA -
testcase_13 AC 573 ms
78,300 KB
testcase_14 AC 589 ms
78,120 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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