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