502744211
2021.5.29 第一道紫题祭
2021.8.23 绿名祭
2024.7.29 橙名祭
2025.1.28 红名祭
2025.2.8 洛谷讨论区被禁用祭
2025.2.12 掉橙祭
2025.5.4 再次红名祭
2025.07.21(左右) 再次掉橙祭
2025.10.22 再次红名祭
Loyalty weighs as the highest mountain,with my death lights as the smallest feather.
However,I still wish that a thousand year of love could bloom a thousand bunches of flower.
吾乃官军敌为贼,天地难容反叛军。
敌军大将好一位,天地无双大英雄。
强将手下无弱兵,皆是彪悍决死士。
虽然骁勇惊鬼神,起兵造反天难容.
从来逆臣贼子者,未见荣华富贵人。
直到敌灭亡,并肩共前进,
寒光齐出鞘,决死冲向前。
广告:https://www.luogu.com.cn/team/36725
g++ A.cpp -o o -g -fasanitize=address,undefined
g++ -pg -o P5490 P5490.cpp
gprof ./P5490 gmon.out > fx.txt
快速计算组合数
inline int c(const int m,const int n)
{
return ((fac[m]*ifac[n])%mod)*ifac[m-n]%mod;
}
fac[0]=ifac[0]=fac[1]=ifac[1]=1;
for(int i=2;i<=10000000;++i)
{
fac[i]=fac[i-1]*i%mod;
ifac[i]=ifac[mod%i]*(mod-mod/i)%mod;
}
for(int i=2;i<=10000000;i++) ifac[i]=ifac[i-1]*ifac[i]%mod;
有的模数没有逆元
https://www.cnblogs.com/jerrycyx/p/18329144
document.designMode=‘on‘
收起
r2352ezm5dm9z286291t
