結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 237 ms
78,256 KB
testcase_01 AC 244 ms
78,076 KB
testcase_02 AC 390 ms
78,072 KB
testcase_03 AC 185 ms
78,408 KB
testcase_04 AC 431 ms
78,424 KB
testcase_05 AC 453 ms
78,044 KB
testcase_06 AC 466 ms
78,380 KB
testcase_07 AC 456 ms
78,300 KB
testcase_08 AC 471 ms
78,680 KB
testcase_09 WA -
testcase_10 AC 472 ms
78,552 KB
testcase_11 AC 457 ms
78,556 KB
testcase_12 AC 462 ms
78,116 KB
testcase_13 AC 471 ms
78,136 KB
testcase_14 AC 444 ms
78,452 KB
権限があれば一括ダウンロードができます

ソースコード

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