結果
問題 | No.1564 Sum of Products of Pairs |
ユーザー |
|
提出日時 | 2023-06-25 21:32:30 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 125 ms / 2,000 ms |
コード長 | 135 bytes |
コンパイル時間 | 193 ms |
コンパイル使用メモリ | 82,048 KB |
実行使用メモリ | 103,680 KB |
最終ジャッジ日時 | 2024-07-02 15:07:32 |
合計ジャッジ時間 | 4,638 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 30 |
ソースコード
n = int(input())l = sorted(map(int, input().split()), reverse=True)a = 0for i in range(n):a += l[i * 2] * l[i * 2 + 1]print(a)