Processing math: 100%

07 2020 档案

SP5971 【LCMSUM - LCM Sum】
摘要:lei/ ni=1lcm(i,n)=ni=1ingcd(i,n)= nd|nni=1ind[gcd(i,n)==d]= \(n \times \sum^{n}_{d
91
0
0
数学小算法
摘要:exgcd x=y  y=ta/b×y CRT ans=ni=1bi×Mi×inv(Mi,modi) Mk=(ni=1modi)/modk \(i
110
0
0
PAM
摘要:struct PAM { int ch[N][26], fail[N], len[N]; int tot, las; PAM() { len[0] = 0; len[1] = -1; fail[0] = 1; tot = 1; las = 0; } inline int gtfail(int x,
70
0
0
SAM模板
摘要:#include <cstdio> #include <cstring> #include <algorithm> using namespace std; #define R register #define LL long long const int inf = 0x3f3f3f3f; con
127
0
0
点击右上角即可分享
微信分享提示
深色
回顶
收起