結果

問題 No.268 ラッピング(Easy)
ユーザー 👑 yumechiyumechi
提出日時 2015-08-21 23:28:14
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
AC  
実行時間 16 ms / 5,000 ms
コード長 363 bytes
コンパイル時間 848 ms
コンパイル使用メモリ 10,908 KB
実行使用メモリ 7,888 KB
最終ジャッジ日時 2023-09-25 15:29:16
合計ジャッジ時間 2,347 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,796 KB
testcase_01 AC 15 ms
7,764 KB
testcase_02 AC 15 ms
7,888 KB
testcase_03 AC 15 ms
7,764 KB
testcase_04 AC 16 ms
7,752 KB
testcase_05 AC 15 ms
7,844 KB
testcase_06 AC 15 ms
7,856 KB
testcase_07 AC 15 ms
7,772 KB
testcase_08 AC 15 ms
7,844 KB
testcase_09 AC 15 ms
7,884 KB
testcase_10 AC 15 ms
7,832 KB
testcase_11 AC 15 ms
7,804 KB
testcase_12 AC 15 ms
7,732 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

l1, l2, l3 = map(int, input().split())
llist = [[l1, l2], [l2, l3], [l3, l1]]
r, b, y = map(int, input().split())
res = 10 ** 9 + 7
for i in range(3):
    rt = sum(llist[i]) * 2 * r
    for j in range(2):
        bt = sum(llist[(i+1+j) % 3]) * 2 * b
        yt = sum(llist[(i+2-j) % 3]) * 2 * y
        tres = rt + bt + yt
        res = min(tres, res)
print(res)
0