結果

問題 No.698 ペアでチームを作ろう
ユーザー lllllll88938494lllllll88938494
提出日時 2022-09-22 20:40:28
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
WA  
実行時間 -
コード長 228 bytes
コンパイル時間 117 ms
コンパイル使用メモリ 10,656 KB
実行使用メモリ 8,968 KB
最終ジャッジ日時 2023-08-23 20:37:34
合計ジャッジ時間 2,823 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 45 ms
8,824 KB
testcase_01 AC 36 ms
8,740 KB
testcase_02 AC 72 ms
8,840 KB
testcase_03 AC 36 ms
8,664 KB
testcase_04 WA -
testcase_05 AC 88 ms
8,656 KB
testcase_06 AC 89 ms
8,888 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

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

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