結果
問題 |
No.1564 Sum of Products of Pairs
|
ユーザー |
![]() |
提出日時 | 2021-06-26 16:34:14 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 124 ms / 2,000 ms |
コード長 | 127 bytes |
コンパイル時間 | 218 ms |
コンパイル使用メモリ | 82,576 KB |
実行使用メモリ | 103,808 KB |
最終ジャッジ日時 | 2024-06-25 10:54:57 |
合計ジャッジ時間 | 3,985 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 30 |
ソースコード
N = int(input()) a = list(map(int,input().split())) a.sort() ans = 0 for i in range(0,2*N,2): ans += a[i]*a[i+1] print(ans)