有一堆数,问你能否从中选出若干个数使得这些数的最小公倍数为x思路:求出数组中能被x整除的数字的最小公倍数lcm,如果lcm%x==0,则可以找到,否则找不到。 #include <iostream> #include <cstdio> #include <cmath> #include <vector> using namespace std; typedef long long ll; vector<int>p; int n; int a[55]; ll gcd(ll a,ll b) { return b==0?a:gcd(...