当前位置:网站首页>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];
边栏推荐
- Analysis of pointer and array written test questions
- 从 TiDB 集群迁移数据至另一 TiDB 集群
- CAD ARX gets the current viewport settings
- Webrtc series-h.264 estimated bit rate calculation
- Redis list detailed explanation of character types yyds dry goods inventory
- "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
- 数据治理:元数据管理篇
- Nft智能合约发行,盲盒,公开发售技术实战--合约篇
- 指针和数组笔试题解析
- P3047 [usaco12feb]nearby cows g (tree DP)
猜你喜欢
![[factorial inverse], [linear inverse], [combinatorial counting] Niu Mei's mathematical problems](/img/6d/282d904810807810adb06b071fb39b.jpg)
[factorial inverse], [linear inverse], [combinatorial counting] Niu Mei's mathematical problems

Interview Reply of Zhuhai Jinshan

Nft智能合约发行,盲盒,公开发售技术实战--合约篇

Sanzi chess (C language)

Secure captcha (unsafe verification code) of DVWA range

The State Economic Information Center "APEC industry +" Western Silicon Valley will invest 2trillion yuan in Chengdu Chongqing economic circle, which will surpass the observation of Shanghai | stable

ESP系列引脚說明圖匯總

Understanding of law of large numbers and central limit theorem

Leetcode question brushing record | 203_ Remove linked list elements

Mex related learning
随机推荐
Asia Pacific Financial Media | art cube of "designer universe": Guangzhou community designers achieve "great improvement" in urban quality | observation of stable strategy industry fund
Asia Pacific Financial Media | female pattern ladyvision: forced the hotel to upgrade security. The drunk woman died in the guest room, and the hotel was sentenced not to pay compensation | APEC secur
22. Empty the table
Personalized online cloud database hybrid optimization system | SIGMOD 2022 selected papers interpretation
"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
[redis] Introduction to NoSQL database and redis
Analysis of pointer and array written test questions
面向个性化需求的在线云数据库混合调优系统 | SIGMOD 2022入选论文解读
使用 Dumpling 备份 TiDB 集群数据到兼容 S3 的存储
2.10transfrom attribute
Circuit breaker: use of hystrix
649. Dota2 Senate
1. Color inversion, logarithmic transformation, gamma transformation source code - miniopencv from zero
Data governance: misunderstanding sorting
onie支持pice硬盘
Oracle time display adjustment
Data governance: metadata management
在 uniapp 中使用阿里图标
数据治理:主数据的3特征、4超越和3二八原则
File upload of DVWA range