From 937a5b41b826b86cfe09604c453a6289cb1bb4d3 Mon Sep 17 00:00:00 2001 From: Anduin Xue Date: Sat, 19 Apr 2025 07:27:47 +0000 Subject: [PATCH] Fix #1512 --- tips/如何选择现在吃什么.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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; +``` ### 菜的选择