本篇全是整理,为比赛准备. 在这里插入代码片
#include<cstdio>
using namespace std;
int n, m;
int a[100], b[100];int main() {scanf_s("%d%d", &n, &m);for (int i 1; i < n; i)a[i] b[i] 0;//将两个数组清0,这…
题目链接:求组合数 III #include <iostream>
#include <algorithm>using namespace std;typedef long long LL;int p;int qmi(int a, int k)
{int res 1;while(k){if(k & 1) res (LL) res * a % p;k >> 1;a (LL) a * a % p;}return res;
}…