結果

問題 No.699 ペアでチームを作ろう2
ユーザー lllllll88938494lllllll88938494
提出日時 2022-09-23 21:41:54
言語 PyPy3
(7.3.13)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 228 bytes
コンパイル時間 1,218 ms
コンパイル使用メモリ 86,664 KB
実行使用メモリ 78,812 KB
最終ジャッジ日時 2023-08-23 21:07:49
合計ジャッジ時間 10,719 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 336 ms
77,944 KB
testcase_01 AC 332 ms
77,944 KB
testcase_02 AC 579 ms
78,608 KB
testcase_03 AC 232 ms
78,380 KB
testcase_04 AC 642 ms
78,300 KB
testcase_05 AC 689 ms
78,344 KB
testcase_06 AC 697 ms
78,120 KB
testcase_07 AC 707 ms
78,344 KB
testcase_08 AC 702 ms
78,424 KB
testcase_09 AC 696 ms
78,300 KB
testcase_10 AC 696 ms
78,408 KB
testcase_11 AC 683 ms
78,360 KB
testcase_12 AC 686 ms
78,352 KB
testcase_13 WA -
testcase_14 AC 704 ms
78,276 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