結果

問題 No.268 ラッピング(Easy)
ユーザー 👑 yumechiyumechi
提出日時 2015-09-23 06:18:30
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 76 ms / 5,000 ms
コード長 362 bytes
コンパイル時間 285 ms
コンパイル使用メモリ 87,152 KB
実行使用メモリ 71,536 KB
最終ジャッジ日時 2023-09-26 14:34:47
合計ジャッジ時間 2,067 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 76 ms
71,152 KB
testcase_01 AC 76 ms
71,308 KB
testcase_02 AC 75 ms
71,248 KB
testcase_03 AC 74 ms
71,244 KB
testcase_04 AC 74 ms
71,144 KB
testcase_05 AC 73 ms
71,536 KB
testcase_06 AC 74 ms
71,208 KB
testcase_07 AC 74 ms
71,424 KB
testcase_08 AC 75 ms
71,360 KB
testcase_09 AC 73 ms
71,476 KB
testcase_10 AC 75 ms
71,320 KB
testcase_11 AC 73 ms
71,248 KB
testcase_12 AC 75 ms
71,308 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