結果

問題 No.268 ラッピング(Easy)
ユーザー H3PO4H3PO4
提出日時 2020-06-07 10:36:26
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
AC  
実行時間 16 ms / 5,000 ms
コード長 265 bytes
コンパイル時間 137 ms
コンパイル使用メモリ 10,540 KB
実行使用メモリ 8,156 KB
最終ジャッジ日時 2023-08-25 04:10:45
合計ジャッジ時間 1,158 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
8,116 KB
testcase_01 AC 16 ms
8,156 KB
testcase_02 AC 16 ms
8,008 KB
testcase_03 AC 16 ms
8,152 KB
testcase_04 AC 16 ms
8,156 KB
testcase_05 AC 15 ms
8,064 KB
testcase_06 AC 15 ms
8,048 KB
testcase_07 AC 15 ms
8,016 KB
testcase_08 AC 15 ms
8,068 KB
testcase_09 AC 15 ms
8,056 KB
testcase_10 AC 15 ms
8,076 KB
testcase_11 AC 16 ms
8,016 KB
testcase_12 AC 15 ms
8,076 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import itertools

L = tuple(map(int, input().split()))
RBY = tuple(map(int, input().split()))

L_comb = [sum(t) * 2 for t in itertools.combinations(L, 2)]

ans = min(sum(L_comb[i] * t[i] for i in range(3))
          for t in itertools.permutations(RBY))
print(ans)
0