結果

問題 No.268 ラッピング(Easy)
ユーザー 👑 KazunKazun
提出日時 2020-12-01 17:57:45
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 77 ms / 5,000 ms
コード長 304 bytes
コンパイル時間 915 ms
コンパイル使用メモリ 87,292 KB
実行使用メモリ 71,716 KB
最終ジャッジ日時 2023-10-11 03:40:43
合計ジャッジ時間 2,224 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
71,204 KB
testcase_01 AC 76 ms
71,564 KB
testcase_02 AC 70 ms
71,516 KB
testcase_03 AC 68 ms
71,580 KB
testcase_04 AC 77 ms
71,180 KB
testcase_05 AC 70 ms
71,312 KB
testcase_06 AC 72 ms
71,552 KB
testcase_07 AC 69 ms
71,480 KB
testcase_08 AC 69 ms
71,292 KB
testcase_09 AC 75 ms
71,320 KB
testcase_10 AC 72 ms
71,328 KB
testcase_11 AC 71 ms
71,716 KB
testcase_12 AC 72 ms
71,532 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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)
0