ACCCCCC

zxy0416  •  30天前


include <bits/stdc++.h>

using namespace std;

int main() {

int n;
cin >> n;
int x1 = 1;
for (int i = 1; i <= n; i++) {
	int x;
	cin >> x;
	x1 = x1 * x / __gcd(x1, x);
}
cout << x1;
return 0;

}


评论:

请先登录,才能进行评论