HDU - 1796 How many integers can you find (容斥原理)

#include<bits/stdc++.h> using namespace std; typedef long long ll; ll n, m, a[15], ans, p; ll lcm(ll a, ll b){return a * b / __gcd(a, b);} void dfs(ll x, ll sum, ll num) { if(num > m)return; i
相關文章
相關標籤/搜索