結果

問題 No.268 ラッピング(Easy)
ユーザー yumechi
提出日時 2015-09-23 06:18:30
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 41 ms / 5,000 ms
コード長 362 bytes
コンパイル時間 202 ms
コンパイル使用メモリ 82,232 KB
実行使用メモリ 53,556 KB
最終ジャッジ日時 2024-07-19 08:46:30
合計ジャッジ時間 1,199 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

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