当前位置:网站首页>Mathematical knowledge: finding the number of divisors
Mathematical knowledge: finding the number of divisors
2022-07-01 05:08:00 【zheng. ys】

#include<iostream>
#include<algorithm>
#include<unordered_map>
using namespace std;
typedef long long ll;
const int N=1e9+7;
int main()
{
int n;
cin>>n;
unordered_map<int,int>zheng;
while(n--)
{
int x;
cin>>x;
for(int i=2;i<=x/i;i++)
while(x%i==0)
{
x/=i;
zheng[i]++;
}
if(x>1)zheng[x]++;
}
ll ans=1;
for(unordered_map<int,int>::iterator i=zheng.begin();i!=zheng.end();i++)
ans=ans*(i->second+1)%N;
cout<<ans<<endl;
return 0;
}
边栏推荐
- 【暑期每日一题】洛谷 P5740【深基7.例9】最厉害的学生
- Explanation of characteristics of hydraulic slip ring
- How to use common datasets in pytorch
- Is there any good website or software for learning programming? [introduction to programming]?
- Oracle views the creation time of the tablespace in the database
- 1076 Forwards on Weibo
- 导电滑环短路的原因以及应对措施
- Software intelligence: the "world" and "boundary" of AI sentient beings in AAAs system
- 【暑期每日一题】洛谷 P1629 邮递员送信(未完待续...)
- Causes of short circuit of conductive slip ring and Countermeasures
猜你喜欢

How to use common datasets in pytorch

Spanner 论文小结

Technology sharing | broadcast function design in integrated dispatching

el-form表单新增表单项动态校验;el-form校验动态表单v-if不生效;
![[data recovery in North Asia] a data recovery case of raid crash caused by hard disk drop during data synchronization of hot spare disk of RAID5 disk array](/img/22/606ff1e8dad3d5896b32d2146b0477.jpg)
[data recovery in North Asia] a data recovery case of raid crash caused by hard disk drop during data synchronization of hot spare disk of RAID5 disk array

CockroachDB: The Resilient Geo-Distributed SQL Database 论文阅读笔记

数字金额加逗号;js给数字加三位一逗号间隔的两种方法;js数据格式化

LeetCode522-最长特殊序列II-哈希表-字符串-双指针
![AssertionError assert I.ndim == 4 and I.shape[1] == 3](/img/b1/0109bb0f893eb4c8915df36c100907.png)
AssertionError assert I.ndim == 4 and I.shape[1] == 3

导电滑环使用的注意事项
随机推荐
积分商城游戏能够给商家带来什么?怎么搭建积分商城?
JS random verification code
FileOutPutStream
线程类的几大创建方法
对象的序列化与反序列化
LeetCode522-最长特殊序列II-哈希表-字符串-双指针
Global and Chinese market of paper machine systems 2022-2028: Research Report on technology, participants, trends, market size and share
导电滑环使用的注意事项
Global and Chinese market of enterprise wireless LAN 2022-2028: Research Report on technology, participants, trends, market size and share
【暑期每日一题】洛谷 P2026 求一次函数解析式
QDataStream的简单读写验证
Buffer stream and transform stream
Use of STM32 expansion board temperature sensor and temperature humidity sensor
智慧运维:基于 BIM 技术的可视化管理系统
缓冲流与转换流
Daily question -leetcode1175- permutation of prime numbers - Mathematics
Manually implement a simple stack
Global and Chinese markets of superconductor 2022-2028: Research Report on technology, participants, trends, market size and share
How to traverse massive data in redis
Leetcode522- longest special sequence ii- hash table - String - double pointer