結果
| 問題 | 
                            No.268 ラッピング(Easy)
                             | 
                    
| コンテスト | |
| ユーザー | 
                            👑  Kazun
                         | 
                    
| 提出日時 | 2020-12-01 17:57:45 | 
| 言語 | PyPy3  (7.3.15)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 38 ms / 5,000 ms | 
| コード長 | 304 bytes | 
| コンパイル時間 | 188 ms | 
| コンパイル使用メモリ | 82,092 KB | 
| 実行使用メモリ | 53,976 KB | 
| 最終ジャッジ日時 | 2024-09-13 03:04:21 | 
| 合計ジャッジ時間 | 1,396 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge5 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 10 | 
ソースコード
from itertools import permutations
L,M,N=map(int,input().split())
R,B,Y=map(int,input().split())
F,G,H=2*(L+M),2*(M+N),2*(N+L)
X=float("inf")
for S in permutations([R,B,Y]):
    for T in permutations([F,G,H]):
        K=0
        for i in range(3):
            K+=S[i]*T[i]
        X=min(X,K)
print(X)
            
            
            
        
            
Kazun