結果

問題 No.268 ラッピング(Easy)
ユーザー ryusukeryusuke
提出日時 2022-05-06 18:43:16
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 81 ms / 5,000 ms
コード長 443 bytes
コンパイル時間 1,354 ms
コンパイル使用メモリ 86,948 KB
実行使用メモリ 71,380 KB
最終ジャッジ日時 2023-09-19 07:50:42
合計ジャッジ時間 3,438 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 79 ms
71,124 KB
testcase_01 AC 81 ms
71,176 KB
testcase_02 AC 80 ms
71,124 KB
testcase_03 AC 79 ms
71,160 KB
testcase_04 AC 80 ms
71,120 KB
testcase_05 AC 79 ms
70,916 KB
testcase_06 AC 79 ms
70,920 KB
testcase_07 AC 76 ms
71,380 KB
testcase_08 AC 78 ms
71,128 KB
testcase_09 AC 78 ms
71,184 KB
testcase_10 AC 78 ms
71,084 KB
testcase_11 AC 76 ms
71,220 KB
testcase_12 AC 77 ms
71,152 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def f1(n: int):
    return 2 * (l1 + l2) * n

def f2(n: int):
    return 2 * (l2 + l3) * n

def f3(n: int):
    return 2 * (l1 + l3) * n

l1, l2, l3 = map(int, input().split())
a, b, c = map(int, input().split())

ans = []
ans.append(f1(a) + f2(b) + f3(c))
ans.append(f1(a) + f2(c) + f3(b))
ans.append(f1(b) + f2(a) + f3(c))
ans.append(f1(b) + f2(c) + f3(a))
ans.append(f1(c) + f2(a) + f3(b))
ans.append(f1(c) + f2(b) + f3(a))

print(min(ans))
0