Product and 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.
Product and GCD
题面翻译
给你 个整数 。
你需要构造一个有 个数的整数序列 ,满足以下条件:
求 可能的最大值。
输入格式
两个正整数 。
输出格式
一个整数表示答案。
样例 #1
样例输入 #1
3 24
样例输出 #1
2
样例 #2
样例输入 #2
5 1
样例输出 #2
1
样例 #3
样例输入 #3
1 111
样例输出 #3
111
样例 #4
样例输入 #4
4 972439611840
样例输出 #4
206
数据范围
样例解释 1
一个最优解为 ,最大公约数为 。
样例解释 2
由于 都是正整数,因此只能 。
20240910集训
- Status
- Done
- Rule
- IOI(Strict)
- Problem
- 6
- Start at
- 2024-9-10 19:00
- End at
- 2024-9-10 21:00
- Duration
- 2 hour(s)
- Host
- Partic.
- 26