给出一组数,输出它们的最大公约数与最小公倍数。
第一行一个整数 n。 第二行 n 个正整数。
输出两个整数。
3 6 9 15
3 90
1≤n≤8。
使用您的 www.mathcoding.online 通用账户