結果
問題 | No.268 ラッピング(Easy) |
ユーザー |
![]() |
提出日時 | 2024-01-27 14:41:14 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 40 ms / 5,000 ms |
コード長 | 323 bytes |
コンパイル時間 | 189 ms |
コンパイル使用メモリ | 82,688 KB |
実行使用メモリ | 52,352 KB |
最終ジャッジ日時 | 2024-09-28 09:39:15 |
合計ジャッジ時間 | 1,326 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 10 |
ソースコード
L = list(map(int,input().split())) RBY = list(map(int,input().split())) SL = sum(L) L2 = [] for i in range(3): L2.append(2*(SL-L[i])) ans = 10 ** 6 from itertools import permutations for X in permutations(range(3),3): tmp = 0 for i in range(3): tmp += L2[i] * RBY[X[i]] ans = min(ans,tmp) print(ans)