练习专区

今天的一小步就是明天的一大步
Problem 1597 最小公倍数
Accepted: 2   Total Submit: 12
Time Limit: 1000ms   Memory Limit: 30720KB
Description
有一个数x,它想知道与另外n个数的最小公倍数,请你编程求之。
Input
有多组输入,每组的前2个数是n、x,接着一行有n个用空格隔开的字符,n、x为0表示结束。
Output
输出x与这n个数的最小公倍数。格式见样例。
Sample Input
5 6
2 3 9 7 12
2 13
1 26
Sample Output
Case 1:
<6,2>=6 <6,3>=6 <6,9>=18 <6,7>=42 <6,12>=12
Case 2:
<13,1>=13 <13,26>=26
Hint
提交     返回