結果
問題 |
No.698 ペアでチームを作ろう
|
ユーザー |
![]() |
提出日時 | 2022-09-22 20:42:55 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 229 bytes |
コンパイル時間 | 176 ms |
コンパイル使用メモリ | 82,304 KB |
実行使用メモリ | 77,188 KB |
最終ジャッジ日時 | 2024-12-22 05:02:23 |
合計ジャッジ時間 | 4,978 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 10 WA * 2 |
ソースコード
from random import shuffle n=int(input()) a=list(map(int,input().split())) ans=0 for i in range(200000): shuffle(a) cnt=0 for i in range(0,n,2): cnt+= a[i]^a[i+1] ans=max(ans,cnt) print(ans)