公约数
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.
题目描述
有 个数 求有多少个数可以同时整除这 个数。
输入格式
第一行一个整数 。 第二行 个用空格隔开的整数 。
输出格式
一行一个数,表示公约数的数量。
样例输入
2
16 32
样例输出
5
样例解释:
共有五个数可以同时整除 和 :。
数据规模与约定:
对于 的数据,
对于 的数据,
淄博实验中学NOIP2023赛前全真模拟1
- Status
- Done
- Rule
- OI
- Problem
- 8
- Start at
- 2023-10-25 14:00
- End at
- 2023-10-25 21:40
- Duration
- 7.7 hour(s)
- Host
- Partic.
- 11