結果
| 問題 | No.268 ラッピング(Easy) |
| コンテスト | |
| ユーザー |
👑 Kazun
|
| 提出日時 | 2020-12-01 17:57:45 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 27 ms / 5,000 ms |
| コード長 | 304 bytes |
| 記録 | |
| コンパイル時間 | 288 ms |
| コンパイル使用メモリ | 85,376 KB |
| 実行使用メモリ | 52,352 KB |
| 最終ジャッジ日時 | 2026-04-04 02:59:32 |
| 合計ジャッジ時間 | 1,148 ms |
|
ジャッジサーバーID (参考情報) |
judge4_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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