⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 problem 1797.htm

📁 zju_acm部分代码!都是自己做 有些事基本题目!题目还可以
💻 HTM
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0047)http://acm.zju.edu.cn/show_problem.php?pid=1797 -->
<HTML><HEAD><TITLE>Problem 1797</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content="MSHTML 6.00.2900.3157" name=GENERATOR></HEAD>
<BODY>
<CENTER><IMG src="Problem 1797.files/logo.gif" align=center></IMG></CENTER>
<HR>

<CENTER><FONT color=blue size=+2>Least Common Multiple</FONT></CENTER>
<HR>

<CENTER><FONT color=green>Time limit:</FONT> 1 Seconds&nbsp;&nbsp; <FONT 
color=green>Memory limit: </FONT>32768K&nbsp;&nbsp; </FONT><BR><FONT 
color=green>Total Submit:</FONT> 4419&nbsp;&nbsp; <FONT color=green>Accepted 
Submit:</FONT> 1454&nbsp;&nbsp; </CENTER>
<HR>
The least common multiple (LCM) of a set of positive integers is the smallest 
positive integer which is divisible by all the numbers in the set. For example, 
the LCM of 5, 7 and 15 is 105. 
<P><BR><B>Input</B></P>
<P>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.</P>
<P><BR><B>Output</B></P>
<P>For each problem instance, output a single line containing the corresponding 
LCM. All results will lie in the range of a 32-bit integer.</P>
<P><BR><B>Sample Input</B></P>
<P>2<BR>3 5 7 15<BR>6 4 10296 936 1287 792 1</P>
<P><BR><B>Sample Output</B></P>
<P>105<BR>10296<BR></P>
<HR>
<FONT color=green size=+1>Problem Source: </FONT><I>East Central North America 
2003, Practice</I>
<HR>
 
<CENTER><A href="http://acm.zju.edu.cn/submit.php?pid=1797">Submit</A> 
&nbsp;&nbsp;<A href="http://acm.zju.edu.cn/list_problem.php?vol=8">Back</A> 
&nbsp;&nbsp;<A 
href="http://acm.zju.edu.cn/problem_status.php?pid=1797">Status</A> </CENTER>
<HR>

<CENTER>
<TABLE width="100%" border=0>
  <TBODY>
  <TR>
    <TD align=right width="65%"><A href="http://acm.zju.edu.cn/"><FONT 
      color=red>Zhejiang University Online Judge</FONT></A> <A 
      href="http://acm.zju.edu.cn/"><FONT color=red>V1.0</FONT></A></TD>
    <TD align=right width="35%"><A href="http://www.zzhang.cn/"><FONT 
      color=#ffffff 
size=-3>Book</FONT></A></TD></TR></TBODY></TABLE></CENTER></BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -