最大公约数(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.
T1 最大公约数(gcd)
题目描述
小 C 想要在 中找出两个不同的数 ,使得 最大,你能告诉小 C 这个最大值吗?
输入格式
输入的第一行包含一个整数 。
输出格式
输出共一行,包含一个整数,表示最大值。
样例 1 输入
2
样例 1 输出
1
样例 1 解释
找出的两个数分别为 ,。
样例 2 输入
5
样例 2 输出
2
其余样例见下发文件。
数据规模与约定
-
对于 的数据,保证 。
-
对于 的数据,保证 。
-
对于 的数据,保证 。
[柳泉中学,七中集团,龙凤苑中学]CSP-J复赛前冲刺模拟5
- Status
- Done
- Rule
- OI
- Problem
- 4
- Start at
- 2025-10-27 15:15
- End at
- 2025-10-31 15:15
- Duration
- 96 hour(s)
- Host
- Partic.
- 65