[Login|Register]
Problems

Status

Rank

Problem 1385
最小公倍数
Time Limit: 1000ms
Memory Limit: 65536kb
Description
求最小公倍数大家应该最熟悉不过了,那么现在帮我解决一个问题:给出一个数字n,求出1~n这n的数的最小公倍数,n≤100
Input
每个输入数据占一行,表示n。输入以EOF结束
Output
对每一个输入n,输出1~n这n的数的最小公倍数
Sample Input
1
2
3
4
Sample Output
1
2
6
12
Hint
我不会告诉你这题需要用到大整数乘法。
University of Science and Technology of China
Online Judge for ACM/ICPC
Processed in 1.2ms with 1 query(s).