結果

問題 No.268 ラッピング(Easy)
ユーザー roarisroaris
提出日時 2019-12-18 20:45:01
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 78 ms / 5,000 ms
コード長 209 bytes
コンパイル時間 283 ms
コンパイル使用メモリ 86,920 KB
実行使用メモリ 71,436 KB
最終ジャッジ日時 2023-09-21 04:24:25
合計ジャッジ時間 2,182 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
71,064 KB
testcase_01 AC 75 ms
71,320 KB
testcase_02 AC 75 ms
71,256 KB
testcase_03 AC 78 ms
71,108 KB
testcase_04 AC 74 ms
71,304 KB
testcase_05 AC 76 ms
71,328 KB
testcase_06 AC 74 ms
71,264 KB
testcase_07 AC 76 ms
71,248 KB
testcase_08 AC 75 ms
71,260 KB
testcase_09 AC 75 ms
71,436 KB
testcase_10 AC 74 ms
71,060 KB
testcase_11 AC 73 ms
71,112 KB
testcase_12 AC 73 ms
71,152 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

L1, L2, L3 = map(int, input().split())
rby = list(map(int, input().split()))
l = [2*(L1+L2), 2*(L2+L3), 2*(L3+L1)]
l.sort()
rby.sort(reverse=True)
ans = sum([li*rby_i for li, rby_i in zip(l, rby)])

print(ans)
0