結果

問題 No.1564 Sum of Products of Pairs
ユーザー roarisroaris
提出日時 2021-07-20 16:48:00
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 152 ms / 2,000 ms
コード長 107 bytes
コンパイル時間 277 ms
コンパイル使用メモリ 87,036 KB
実行使用メモリ 108,872 KB
最終ジャッジ日時 2023-09-24 12:50:08
合計ジャッジ時間 7,110 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,012 KB
testcase_01 AC 75 ms
71,400 KB
testcase_02 AC 72 ms
71,368 KB
testcase_03 AC 108 ms
90,416 KB
testcase_04 AC 82 ms
76,348 KB
testcase_05 AC 120 ms
94,952 KB
testcase_06 AC 105 ms
88,656 KB
testcase_07 AC 92 ms
82,920 KB
testcase_08 AC 84 ms
78,208 KB
testcase_09 AC 95 ms
83,992 KB
testcase_10 AC 120 ms
95,080 KB
testcase_11 AC 125 ms
98,096 KB
testcase_12 AC 108 ms
90,340 KB
testcase_13 AC 75 ms
71,216 KB
testcase_14 AC 72 ms
71,296 KB
testcase_15 AC 72 ms
71,244 KB
testcase_16 AC 71 ms
71,316 KB
testcase_17 AC 71 ms
71,300 KB
testcase_18 AC 152 ms
108,004 KB
testcase_19 AC 148 ms
105,040 KB
testcase_20 AC 152 ms
108,308 KB
testcase_21 AC 151 ms
108,248 KB
testcase_22 AC 146 ms
104,512 KB
testcase_23 AC 152 ms
108,872 KB
testcase_24 AC 150 ms
108,288 KB
testcase_25 AC 151 ms
108,064 KB
testcase_26 AC 152 ms
108,092 KB
testcase_27 AC 150 ms
108,404 KB
testcase_28 AC 72 ms
71,348 KB
testcase_29 AC 72 ms
71,088 KB
testcase_30 AC 73 ms
71,216 KB
testcase_31 AC 73 ms
71,408 KB
testcase_32 AC 73 ms
71,216 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
A = list(map(int, input().split()))
A.sort()
print(sum(A[2*i]*A[2*i+1] for i in range(N)))
0