extra0003

package
v0.0.0-...-632ac27 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 15, 2023 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MaxProfit

func MaxProfit(value []int, n, cost int, risk float32) float32

仓库每天会收到价值为value[i]的货物,每次去领取会产生cost的花费 仓库中的存货每天结束有risk的几率会被盗窃,求最值

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL