結果

問題 No.1564 Sum of Products of Pairs
ユーザー convexineqconvexineq
提出日時 2021-07-09 07:32:36
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 157 ms / 2,000 ms
コード長 102 bytes
コンパイル時間 262 ms
コンパイル使用メモリ 87,192 KB
実行使用メモリ 111,644 KB
最終ジャッジ日時 2023-09-14 06:21:37
合計ジャッジ時間 6,461 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 65 ms
71,284 KB
testcase_01 AC 65 ms
71,252 KB
testcase_02 AC 70 ms
71,084 KB
testcase_03 AC 102 ms
92,740 KB
testcase_04 AC 70 ms
76,180 KB
testcase_05 AC 112 ms
97,784 KB
testcase_06 AC 103 ms
90,800 KB
testcase_07 AC 88 ms
84,180 KB
testcase_08 AC 77 ms
78,896 KB
testcase_09 AC 91 ms
85,452 KB
testcase_10 AC 118 ms
98,088 KB
testcase_11 AC 126 ms
101,660 KB
testcase_12 AC 103 ms
92,728 KB
testcase_13 AC 64 ms
71,220 KB
testcase_14 AC 63 ms
71,308 KB
testcase_15 AC 64 ms
71,416 KB
testcase_16 AC 67 ms
71,220 KB
testcase_17 AC 65 ms
71,472 KB
testcase_18 AC 147 ms
111,644 KB
testcase_19 AC 141 ms
106,948 KB
testcase_20 AC 153 ms
111,328 KB
testcase_21 AC 152 ms
110,312 KB
testcase_22 AC 138 ms
106,808 KB
testcase_23 AC 155 ms
110,248 KB
testcase_24 AC 154 ms
110,252 KB
testcase_25 AC 150 ms
110,300 KB
testcase_26 AC 157 ms
110,124 KB
testcase_27 AC 154 ms
110,404 KB
testcase_28 AC 67 ms
71,336 KB
testcase_29 AC 66 ms
71,224 KB
testcase_30 AC 66 ms
71,188 KB
testcase_31 AC 67 ms
71,296 KB
testcase_32 AC 65 ms
71,088 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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