結果

問題 No.1564 Sum of Products of Pairs
ユーザー 👑 NachiaNachia
提出日時 2021-06-26 13:06:55
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 154 ms / 2,000 ms
コード長 116 bytes
コンパイル時間 430 ms
コンパイル使用メモリ 87,264 KB
実行使用メモリ 110,108 KB
最終ジャッジ日時 2023-09-07 16:17:52
合計ジャッジ時間 5,508 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,484 KB
testcase_01 AC 72 ms
71,192 KB
testcase_02 AC 74 ms
71,304 KB
testcase_03 AC 111 ms
91,104 KB
testcase_04 AC 80 ms
76,220 KB
testcase_05 AC 121 ms
95,936 KB
testcase_06 AC 105 ms
89,428 KB
testcase_07 AC 96 ms
83,168 KB
testcase_08 AC 87 ms
78,488 KB
testcase_09 AC 99 ms
84,740 KB
testcase_10 AC 122 ms
95,992 KB
testcase_11 AC 129 ms
99,236 KB
testcase_12 AC 111 ms
91,200 KB
testcase_13 AC 73 ms
71,092 KB
testcase_14 AC 77 ms
71,260 KB
testcase_15 AC 74 ms
71,300 KB
testcase_16 AC 74 ms
71,332 KB
testcase_17 AC 73 ms
71,092 KB
testcase_18 AC 146 ms
109,568 KB
testcase_19 AC 143 ms
106,064 KB
testcase_20 AC 148 ms
109,444 KB
testcase_21 AC 151 ms
109,612 KB
testcase_22 AC 147 ms
105,784 KB
testcase_23 AC 154 ms
110,108 KB
testcase_24 AC 150 ms
109,480 KB
testcase_25 AC 149 ms
109,484 KB
testcase_26 AC 149 ms
109,884 KB
testcase_27 AC 150 ms
109,820 KB
testcase_28 AC 73 ms
71,316 KB
testcase_29 AC 77 ms
71,356 KB
testcase_30 AC 74 ms
71,088 KB
testcase_31 AC 72 ms
71,392 KB
testcase_32 AC 73 ms
71,304 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
A = sorted(list(map(int,input().split())))
S = 0
for i in range(n): S += A[i*2] * A[i*2+1]
print(S)
0