mirror of
https://github.com/krahets/hello-algo.git
synced 2026-07-26 04:56:06 +00:00
build
This commit is contained in:
@@ -66,7 +66,7 @@ $$
|
||||
|
||||
### 2. 代码实现
|
||||
|
||||
在代码中,我们无需通过循环来切分整数,而可以利用向下整除运算得到 $3$ 的个数 $a$ ,用取模运算得到余数 $b$ ,此时有:
|
||||
在代码中,我们无须通过循环来切分整数,而可以利用向下整除运算得到 $3$ 的个数 $a$ ,用取模运算得到余数 $b$ ,此时有:
|
||||
|
||||
$$
|
||||
n = 3 a + b
|
||||
|
||||
Reference in New Issue
Block a user