結果

問題 No.268 ラッピング(Easy)
ユーザー convexineqconvexineq
提出日時 2021-02-19 14:17:49
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 77 ms / 5,000 ms
コード長 153 bytes
コンパイル時間 588 ms
コンパイル使用メモリ 87,076 KB
実行使用メモリ 71,464 KB
最終ジャッジ日時 2023-10-14 08:35:04
合計ジャッジ時間 2,441 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
70,948 KB
testcase_01 AC 71 ms
71,168 KB
testcase_02 AC 72 ms
71,452 KB
testcase_03 AC 74 ms
71,312 KB
testcase_04 AC 72 ms
70,932 KB
testcase_05 AC 72 ms
71,416 KB
testcase_06 AC 75 ms
71,120 KB
testcase_07 AC 73 ms
71,324 KB
testcase_08 AC 72 ms
71,164 KB
testcase_09 AC 73 ms
71,464 KB
testcase_10 AC 76 ms
71,448 KB
testcase_11 AC 77 ms
71,276 KB
testcase_12 AC 73 ms
71,156 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

a,b,c = map(int,input().split())
T = sorted(map(int,input().split()))[::-1]
L = sorted([2*(a+b),2*(b+c),2*(c+a)])
print(sum(ti*li for ti,li in zip(T,L)))
0