2021蓝桥杯C++A组:回路计数
代码如下(对点做了处理,从1到21,处理为0到20,便于位运算,答案为:881012367360):
#include<bits/stdc++.h>
using namespace std;
#define ll long long
const int M=22;const int N=1<<M;
ll dp[N][M];int p[M][M];
int gcd(int a,int b)
{
if(a%b==0) return b;
retu...
原创
2021-09-23 20:09:53 ·
1678 阅读 ·
4 评论