結果
| 問題 | No.268 ラッピング(Easy) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2015-08-15 16:39:02 |
| 言語 | PyPy2 (7.3.20) |
| 結果 |
AC
|
| 実行時間 | 58 ms / 5,000 ms |
| + 664µs | |
| コード長 | 288 bytes |
| 記録 | |
| コンパイル時間 | 65 ms |
| コンパイル使用メモリ | 80,768 KB |
| 実行使用メモリ | 80,768 KB |
| 最終ジャッジ日時 | 2026-07-17 18:55:01 |
| 合計ジャッジ時間 | 2,059 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 10 |
ソースコード
from itertools import permutations
L = map(int, raw_input().split())
color = map(int, raw_input().split())
mn = float("inf")
for ls in permutations(L):
total = 0
for i in xrange(3):
total += (ls[i] * 2 + ls[(i + 1) % 3] * 2) * color[i]
mn = min(total, mn)
print mn