結果
問題 |
No.1564 Sum of Products of Pairs
|
ユーザー |
![]() |
提出日時 | 2025-08-13 02:27:24 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 133 bytes |
コンパイル時間 | 341 ms |
コンパイル使用メモリ | 82,780 KB |
実行使用メモリ | 105,572 KB |
最終ジャッジ日時 | 2025-08-13 02:27:29 |
合計ジャッジ時間 | 4,578 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 WA * 2 |
other | AC * 5 WA * 25 |
ソースコード
N = int(input()) A = list(map(int, input().split())) A.sort() ans = 0 for i in range(0, N, 2): ans += A[i] * A[i+1] print(ans)