当前位置:网站首页>Permutation and combination function
Permutation and combination function
2022-07-06 08:11:00 【. dye】
array
ll A(ll n,ll m)
{ ll co=1; if(m==0){return co;}
for(ll i=m+1;i<=n;i++){
co*=i;
}
return co;
}
Combine
ll C[100][100];
void C(int n)// ceiling
{
for(int i = 0; i <n+1; ++i) {
for(int j = 0; j <= i; ++j) {
if(!j) C[i][j] = 1;
else C[i][j] = (C[i - 1][j] + C[i - 1][j - 1]) % ((ll)(1e9 + 7));
}
}
}
After entering the upper limit
Usage method 15 Choose from 6 individual Namely C[15][6];
边栏推荐
- Pangolin Library: control panel, control components, shortcut key settings
- [count] [combined number] value series
- Golang DNS write casually
- Data governance: Data Governance under microservice architecture
- "Designer universe" APEC design +: the list of winners of the Paris Design Award in France was recently announced. The winners of "Changsha world center Damei mansion" were awarded by the national eco
- 远程存储访问授权
- 让学指针变得更简单(三)
- Artcube information of "designer universe": Guangzhou implements the community designer system to achieve "great improvement" of urban quality | national economic and Information Center
- Vit (vision transformer) principle and code elaboration
- 22. Empty the table
猜你喜欢
ESP系列引脚说明图汇总
[research materials] 2021 live broadcast annual data report of e-commerce - Download attached
Chinese Remainder Theorem (Sun Tzu theorem) principle and template code
Codeforces Global Round 19(A~D)
What is the use of entering the critical point? How to realize STM32 single chip microcomputer?
Parameter self-tuning of relay feedback PID controller
C language - bit segment
"Designer universe": "benefit dimension" APEC public welfare + 2022 the latest slogan and the new platform will be launched soon | Asia Pacific Financial Media
Analysis of pointer and array written test questions
珠海金山面试复盘
随机推荐
Interview Reply of Zhuhai Jinshan
What is the use of entering the critical point? How to realize STM32 single chip microcomputer?
Understanding of law of large numbers and central limit theorem
面向个性化需求的在线云数据库混合调优系统 | SIGMOD 2022入选论文解读
Transformer principle and code elaboration
Codeforces Global Round 19(A~D)
[Yugong series] February 2022 U3D full stack class 010 prefabricated parts
Résumé des diagrammes de description des broches de la série ESP
CAD ARX gets the current viewport settings
Huawei cloud OBS file upload and download tool class
Redis list detailed explanation of character types yyds dry goods inventory
【T31ZL智能视频应用处理器资料】
The Vice Minister of the Ministry of industry and information technology of "APEC industry +" of the national economic and information technology center led a team to Sichuan to investigate the operat
WebRTC系列-H.264预估码率计算
Artcube information of "designer universe": Guangzhou implements the community designer system to achieve "great improvement" of urban quality | national economic and Information Center
onie支持pice硬盘
C language - bit segment
Asia Pacific Financial Media | designer universe | Guangdong responds to the opinions of the national development and Reform Commission. Primary school students incarnate as small community designers
在 uniapp 中使用阿里图标
shu mei pai