当前位置:网站首页>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];
边栏推荐
- Restore backup data on S3 compatible storage with tidb lightning
- Circuit breaker: use of hystrix
- What are the ways to download network pictures with PHP
- C language - bit segment
- Common functions for PHP to process strings
- Yu Xia looks at win system kernel -- message mechanism
- 【云原生】手把手教你搭建ferry开源工单系统
- Convolution, pooling, activation function, initialization, normalization, regularization, learning rate - Summary of deep learning foundation
- 1. Color inversion, logarithmic transformation, gamma transformation source code - miniopencv from zero
- The ECU of 21 Audi q5l 45tfsi brushes is upgraded to master special adjustment, and the horsepower is safely and stably increased to 305 horsepower
猜你喜欢

Nacos Development Manual

"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

What is the use of entering the critical point? How to realize STM32 single chip microcomputer?

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
![[research materials] 2022 China yuancosmos white paper - Download attached](/img/b4/422dff0510bbe67f3578202d6e80b7.jpg)
[research materials] 2022 China yuancosmos white paper - Download attached

Machine learning - decision tree

21. Delete data

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

将 NFT 设置为 ENS 个人资料头像的分步指南

NFT smart contract release, blind box, public offering technology practice -- contract
随机推荐
PHP - Common magic method (nanny level teaching)
华为云OBS文件上传下载工具类
NFT smart contract release, blind box, public offering technology practice -- contract
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
使用 Dumpling 备份 TiDB 集群数据到兼容 S3 的存储
07- [istio] istio destinationrule (purpose rule)
C语言自定义类型:结构体
Pyqt5 development tips - obtain Manhattan distance between coordinates
49. Sound card driven article collection
【云原生】手把手教你搭建ferry开源工单系统
Upgrade tidb with tiup
649. Dota2 Senate
matplotlib. Widgets are easy to use
Asia Pacific Financial Media | art cube of "designer universe": Guangzhou community designers achieve "great improvement" in urban quality | observation of stable strategy industry fund
Go learning notes (3) basic types and statements (2)
Grayscale upgrade tidb operator
Understanding of law of large numbers and central limit theorem
2.10transfrom attribute
TiDB备份与恢复简介
Data governance: data quality