結果

問題 No.268 ラッピング(Easy)
コンテスト
ユーザー ryusuke
提出日時 2022-05-06 18:43:16
言語 PyPy3
(7.3.17)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
AC  
実行時間 64 ms / 5,000 ms
+ 545µs
コード長 443 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 703 ms
コンパイル使用メモリ 95,984 KB
実行使用メモリ 78,976 KB
最終ジャッジ日時 2026-08-08 11:00:31
合計ジャッジ時間 2,669 ms
ジャッジサーバーID
(参考情報)
judge1_0 / judge3_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

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