2
1
mirror of https://github.com/Anduin2017/HowToCook.git synced 2026-10-25 17:36:12 +00:00
This commit is contained in:
Anduin Xue 2025-04-19 07:27:47 +00:00 committed by GitHub
parent bfe2e91f70
commit 937a5b41b8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -24,8 +24,10 @@
解得
* a = floor(N/2)
* b = ceil(N/2)
```javascript
a = Math.floor((N + 1) / 2);
b = (N + 1) - a;
```
### 菜的选择