K-GCD
You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.
K-GCD
题目描述
给定个正整数,求任选个数的最大公约数的最大值。。
注:一个数的最大公约数视为它自己。
输入格式
第一行一个正整数 。
第二行为 个空格隔开的正整数。
输出格式
总共 行,第 行为 情况下的最大公约数的最大值。
样例 #1
样例输入 #1
4
1 2 3 4
样例输出 #1
4
2
1
1
提示
数据范围
对于 的数据,,;
对于另 的数据,,;
对于 的数据,,。
对于 的数据,,。
2023-2024第一学期选修课期末考
- Status
- Done
- Rule
- OI
- Problem
- 4
- Start at
- 2023-12-23 10:45
- End at
- 2023-12-23 12:15
- Duration
- 1.5 hour(s)
- Host
- Partic.
- 14