常用泰勒级数
常用泰勒级数
\[ \frac{1}{1 - x} = 1 + x + x^2 + \cdots + x^n + \cdots (-1 < x < 1) \]
\[ \int_{0}^{\pi} \sin(nx) dx = \frac{1 - \cos(\pi n)}{n} = \frac{(-1)^n + 1}{n} \]
int get(string a, int b) { |
b为进制,a为包含进制的字符串
c ^= 1; |
for (auto& c : b) { |
将3更改为需要的位数
https://oi-wiki.org/string/hash/
表示为
\[hash[i] = (hash[i - 1] * b + ss[i]) \% mod\]
\[ h[r] - (h[l - 1] * bs[r - l + 1]) \% mod + mod) \% mod \]
https://www.acwing.com/problem/content/1462/
#include <cstdio> |
add-apt-repository -y ppa:ondrej/php |
即可添加php8以上的源
sudo apt install php8.0 php8.0-fpm php8.0-gb php8.0-curl php8.0-mysql |
update-alternatives --config php |
For apache2
a2dismod php7.2 |
<?php phpinfo(); ?> |
<?php |
辗转相除
欧几里得算法的递归实现
int gcd(int a, int b) |