1. 程式人生 > >HDU 1019 Least Common Multiple(求最小公倍數)

HDU 1019 Least Common Multiple(求最小公倍數)

Input will consist of multiple problem instances. The first line of the input will contain a single integer indicating the number of problem instances. Each instance will consist of a single line of the form m n1 n2 n3 ... nm where m is the number of integers in the set and n1 ... nm are the integers. All integers will be positive and lie within the range of a 32-bit integer.