結果
| 問題 |
No.268 ラッピング(Easy)
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-09-09 10:46:13 |
| 言語 | Python2 (2.7.18) |
| 結果 |
AC
|
| 実行時間 | 12 ms / 5,000 ms |
| コード長 | 251 bytes |
| コンパイル時間 | 153 ms |
| コンパイル使用メモリ | 6,944 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-11-15 22:58:20 |
| 合計ジャッジ時間 | 892 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 10 |
ソースコード
from itertools import permutations
a = map(int, raw_input().split())
b = [a[i-1]*2+a[i]*2 for i in xrange(3)]
c = map(int, raw_input().split())
m = float('inf')
for i,j,k in permutations([0,1,2]):
m = min(m, b[0]*c[i]+b[1]*c[j]+b[2]*c[k])
print m