結果

問題 No.1564 Sum of Products of Pairs
ユーザー KeroruKeroru
提出日時 2021-06-26 13:17:28
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 160 ms / 2,000 ms
コード長 90 bytes
コンパイル時間 611 ms
コンパイル使用メモリ 87,272 KB
実行使用メモリ 114,896 KB
最終ジャッジ日時 2023-09-07 16:25:28
合計ジャッジ時間 5,616 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,540 KB
testcase_01 AC 73 ms
71,196 KB
testcase_02 AC 71 ms
71,632 KB
testcase_03 AC 112 ms
93,712 KB
testcase_04 AC 78 ms
76,244 KB
testcase_05 AC 123 ms
98,940 KB
testcase_06 AC 107 ms
91,852 KB
testcase_07 AC 95 ms
85,060 KB
testcase_08 AC 83 ms
79,300 KB
testcase_09 AC 97 ms
86,152 KB
testcase_10 AC 125 ms
99,408 KB
testcase_11 AC 129 ms
102,936 KB
testcase_12 AC 113 ms
93,856 KB
testcase_13 AC 72 ms
71,352 KB
testcase_14 AC 69 ms
71,676 KB
testcase_15 AC 70 ms
71,652 KB
testcase_16 AC 70 ms
71,352 KB
testcase_17 AC 69 ms
71,304 KB
testcase_18 AC 151 ms
114,200 KB
testcase_19 AC 145 ms
110,560 KB
testcase_20 AC 151 ms
114,080 KB
testcase_21 AC 156 ms
114,568 KB
testcase_22 AC 147 ms
110,196 KB
testcase_23 AC 156 ms
114,896 KB
testcase_24 AC 158 ms
114,476 KB
testcase_25 AC 156 ms
114,516 KB
testcase_26 AC 160 ms
114,736 KB
testcase_27 AC 158 ms
114,644 KB
testcase_28 AC 73 ms
71,372 KB
testcase_29 AC 72 ms
71,336 KB
testcase_30 AC 71 ms
71,568 KB
testcase_31 AC 73 ms
71,548 KB
testcase_32 AC 73 ms
71,200 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n,*a=map(int,open(0).read().split())
a.sort()
print(sum(a[i*2]*a[2*i+1]for i in range(n)))
0