diff --git a/tips/如何选择现在吃什么.md b/tips/如何选择现在吃什么.md index bf65a149..71e2dc97 100644 --- a/tips/如何选择现在吃什么.md +++ b/tips/如何选择现在吃什么.md @@ -24,8 +24,10 @@ 解得 -* a = floor(N/2) -* b = ceil(N/2) +```javascript +a = Math.floor((N + 1) / 2); +b = (N + 1) - a; +``` ### 菜的选择