結果

問題 No.268 ラッピング(Easy)
ユーザー しらっ亭しらっ亭
提出日時 2015-08-22 18:14:04
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 18 ms / 5,000 ms
コード長 340 bytes
コンパイル時間 81 ms
コンパイル使用メモリ 10,908 KB
実行使用メモリ 7,940 KB
最終ジャッジ日時 2023-09-25 16:13:47
合計ジャッジ時間 1,017 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,752 KB
testcase_01 AC 14 ms
7,864 KB
testcase_02 AC 15 ms
7,772 KB
testcase_03 AC 18 ms
7,936 KB
testcase_04 AC 16 ms
7,732 KB
testcase_05 AC 15 ms
7,776 KB
testcase_06 AC 16 ms
7,760 KB
testcase_07 AC 15 ms
7,864 KB
testcase_08 AC 15 ms
7,828 KB
testcase_09 AC 16 ms
7,904 KB
testcase_10 AC 15 ms
7,804 KB
testcase_11 AC 16 ms
7,940 KB
testcase_12 AC 16 ms
7,940 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def solve():
    L = list(map(int, input().split()))
    R, B, Y = list(map(int, input().split()))

    x = (L[0] + L[1]) * 2
    y = (L[0] + L[2]) * 2
    z = (L[1] + L[2]) * 2

    l = [x, y, z]
    l.sort()

    r = [R, B, Y]
    r.sort(reverse=True)

    print(sum(a * b for a, b in zip(l, r)))


if __name__ == '__main__':
    solve()
0