最大公约数
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.
Description
有 个整数, 。
你最多可以修改其中一个数,也可以不修改。
问操作后,这些数的最大公约数最大是多少。
Format
Input
第一行一个整数 ,表示数的个数。
第二行 个整数。
Output
一个整数,表示答案。
Samples
3
2 12 8
4
将第一个数修改成4.
Limitation
30%:
另有30%:
100% ,
初一A随堂练习
- Status
- Done
- Rule
- IOI
- Problem
- 6
- Start at
- 2025-9-19 10:30
- End at
- 2025-9-19 12:30
- Duration
- 2 hour(s)
- Host
- Partic.
- 29