#64. 约数个数
约数个数
问题描述
给定长度为 的序列 ,输出 的约数个数。结果对 取模。
输入格式
第一行输入包含一个正整数 。
第二行输入包 个数字 。
输出格式
输出 的约数个数。结果对 取模。
样例输入
4
2 4 5 6
样例输出
20
给定长度为 n 的序列 a,输出 i=1∏nai 的约数个数。结果对 109+7 取模。
第一行输入包含一个正整数 n。(1≤n≤100)
第二行输入包 n 个数字 ai。(1≤ai≤2×109)
输出 i=1∏nai 的约数个数。结果对 109+7 取模。
4
2 4 5 6
20
By signing up a Hydro universal account, you can submit code and join discussions in all online judging services provided by us.