Files
HowToCook/如何选择现在吃什么.md
2020-02-29 19:06:40 +08:00

26 lines
729 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 如何决策吃什么
如何决策吃什么也是我做菜之前一大难题。所以只能用数学描述一下了。
## 计算方法
### 计算荤菜和素菜数量
* 总菜数量 = 人数 + 1
* 荤菜数量 + 素菜数量 = 总菜数量
* 荤菜数量 - 素菜数量 <= 1
* 荤菜数量 - 素菜数量 >= 0
* 上述方程组中,荤菜数量、素菜数量、总菜数量皆为整数。
求解上述方程组,得到荤菜数量和素菜数量即可。
### 荤菜的选择
* 如果人数超过8人考虑在荤菜中增加鱼类荤菜。
* 如果有小孩,考虑
## 附加标准
判断一个菜是否是荤菜的标准为:其所依赖的原材料中除了虾肉以外的肉类总质量是否超过 10% 。