当前位置:网站首页>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];
边栏推荐
- 22. Empty the table
- Asia Pacific Financial Media | "APEC industry +" Western Silicon Valley invests 2trillion yuan in Chengdu Chongqing economic circle to catch up with Shanghai | stable strategy industry fund observatio
- Chinese Remainder Theorem (Sun Tzu theorem) principle and template code
- [factorial inverse], [linear inverse], [combinatorial counting] Niu Mei's mathematical problems
- [research materials] 2022 enterprise wechat Ecosystem Research Report - Download attached
- 数据治理:微服务架构下的数据治理
- Analysis of Top1 accuracy and top5 accuracy examples
- flask返回文件下载
- 你想知道的ArrayList知识都在这
- Introduction to number theory (greatest common divisor, prime sieve, inverse element)
猜你喜欢

Résumé des diagrammes de description des broches de la série ESP

Step by step guide to setting NFT as an ens profile Avatar
![[research materials] 2022 enterprise wechat Ecosystem Research Report - Download attached](/img/35/898a8086bc35462b0fcb9e6b58b86b.jpg)
[research materials] 2022 enterprise wechat Ecosystem Research Report - Download attached

Qualitative risk analysis of Oracle project management system
![[redis] Introduction to NoSQL database and redis](/img/95/229d7a08e94245f2733b8c59201cff.png)
[redis] Introduction to NoSQL database and redis

matplotlib. Widgets are easy to use

Hcip day 16

Interview Reply of Zhuhai Jinshan

Epoll and IO multiplexing of redis

"Designer universe" Guangdong responds to the opinions of the national development and Reform Commission. Primary school students incarnate as small community designers | national economic and Informa
随机推荐
Personalized online cloud database hybrid optimization system | SIGMOD 2022 selected papers interpretation
What is the use of entering the critical point? How to realize STM32 single chip microcomputer?
Transformer principle and code elaboration
数据治理:元数据管理篇
07- [istio] istio destinationrule (purpose rule)
备份与恢复 CR 介绍
Notes on software development
Asia Pacific Financial Media | art cube of "designer universe": Guangzhou community designers achieve "great improvement" in urban quality | observation of stable strategy industry fund
让学指针变得更简单(三)
[nonlinear control theory]9_ A series of lectures on nonlinear control theory
Flash return file download
esRally国内安装使用避坑指南-全网最新
Document 2 Feb 12 16:54
Vit (vision transformer) principle and code elaboration
Webrtc series-h.264 estimated bit rate calculation
Oracle time display adjustment
[Yugong series] creation of 009 unity object of U3D full stack class in February 2022
Easy to use tcp-udp_ Debug tool download and use
National economic information center "APEC industry +": economic data released at the night of the Spring Festival | observation of stable strategy industry fund
NFT smart contract release, blind box, public offering technology practice -- contract