设整体 LCM 的质因数分解为
LCM(a1,…,an)=p∏pEp,给定一个长度为n的正整数数组a1,a2,...,an。你需要找到一个连续子数组[1,r],使得该子数组的最小公倍数(LCM)等于整个数组的LCM,并且该子数组的长度尽可能短。
请输出满足条件的子数组的最小长度。
By signing up a CodeFun2000 universal account, you can submit code and join discussions in all online judging services provided by us.