1

如何决策吃什么

 2 years ago
source link: https://cook.aiurs.co/tips/%E5%A6%82%E4%BD%95%E9%80%89%E6%8B%A9%E7%8E%B0%E5%9C%A8%E5%90%83%E4%BB%80%E4%B9%88.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

如何决策吃什么 | HowToCook Skip to the content.

如何决策吃什么

程序员在家做饭方法指南。

View on GitHub

如何决策吃什么

如何决策吃什么也是我做菜之前一大难题。所以只能用数学描述一下了。

计算荤菜和素菜数量

  • 菜的数量 = 人数 + 1。
  • 荤菜比素菜多一个,或一样多即可。

由此得到荤菜数量和素菜数量,再在上一步的菜谱中选择即可。

形式语言描述

当 有人数 N 时, 设 素菜数a, 荤菜数bN, a, b均为整数。

此时有下列不等式组:

  • a + b = N + 1
  • a ≤ b ≤ a+1
  • a = floor(N/2)
  • b = ceil(N/2)
  • 如果人数超过 8 人,考虑在荤菜中增加鱼类荤菜。
  • 如果有小孩,考虑增加有甜味的菜。
  • 考虑增加特色菜、拿手菜。
  • 注意决策荤菜时不要全部使用同一种动物的肉。考虑顺序为:猪肉鸡肉牛肉羊肉鸭肉鱼肉
  • 不要选择奇奇怪怪的动物做荤菜。

HowToCook is maintained by Anduin2017. This page was generated by GitHub Pages.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK