結果

問題 No.1564 Sum of Products of Pairs
ユーザー _matumo_
提出日時 2021-10-27 19:49:25
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 171 ms / 2,000 ms
コード長 96 bytes
コンパイル時間 216 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 30,664 KB
最終ジャッジ日時 2024-10-07 07:30:54
合計ジャッジ時間 4,921 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 30
権限があれば一括ダウンロードができます

ソースコード

diff #

N=input()
p=sorted(map(int,input().split()))
m=sum(a*b for a,b in zip(p[0::2],p[1::2]))
print(m)
0