887. 求组合数 III
题目链接https://www.acwing.com/problem/content/889/ 题目: 思路:
#include<iostream>
#include<cstdio>
using namespace std;
typedef long long LL;
int n;
int qmi(LL a,int k,int p){int res1;while(k){if(k&…
886. 求组合数 II
题目链接https://www.acwing.com/problem/content/888/ 题目: 思路:
#include<iostream>
#include<cstdio>
using namespace std;
typedef long long LL;
const int mod1e97;//mod为质数
int a,b,n;
int fact[100010],…