当前位置:网站首页>Factorial divisor (unique decomposition theorem)
Factorial divisor (unique decomposition theorem)
2022-07-01 06:07:00 【Great intelligence】
Title Description
Define factorial n! = 1 × 2 × 3 × · · · × n.
Excuse me, 100!(100 The factorial ) How many positive divisors are there .
analysis : A positive divisor is a positive factor , Separate factorials , The law of multiplicative distribution is used ; You need to combine the relevant knowledge of this blog
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
ll a[110];
int main()
{
for(int i=1;i<=100;i++)
{
int tmp=i;
for(int j=2;j<=tmp;j++)// from 2 Start
{
while(tmp%j==0)// All non prime numbers are multiples So it's gone
{
a[j]++;
tmp/=j;
}
}
}
ll ans=1;
for(int i=1;i<=100;i++)
{
if(a[i])
ans*=(1+a[i]);
}
cout<<ans<<endl;
}
边栏推荐
- Database problems, how to optimize Oracle SQL query statements faster and more efficient
- Preliminary level of C language -- selected good questions on niuke.com
- OpenGL es: (2) relationship between OpenGL es, EGL and glsl
- MySQL中 in 和 exists 的区别
- Through cooperation with the University of international trade, we can increase efficiency for college students
- highmap gejson数据格式转换脚本
- linux 关闭redis 进程 systemd+
- Make Tiantou village sweet. Is Xianjing taro or cabbage the characteristic agricultural product of Tiantou Village
- 69 cesium code datasource loading geojson
- OpenGL ES: (5) OpenGL的基本概念、OpenGL ES 在屏幕产生图片的过程、OpenGL管线(pipeline)
猜你喜欢

Database problems, how to optimize Oracle SQL query statements faster and more efficient

蚂蚁新村田头村变甜头村 让厦门灌口镇田头村变甜头村的特色农产品之一是

My experience from technology to product manager

Index method and random forest to realize the information of surface water body in wet season in Shandong Province

68 Cesium代码datasource加载czml

Geoffrey Hinton: my 50 years of in-depth study and Research on mental skills

Crossing pie · pie pan + Mountain duck = local data management

Preliminary level of C language -- selected good questions on niuke.com

相同区域 多源栅格数据 各个像元行列号一致,即行数列数相同,像元大小相同

健康照明中应用的LED照明灯
随机推荐
PLA不粘貼在床上:6個簡單的解决方案
How to add a gourd pie plate
健康照明中应用的LED照明灯
Infinite horizontal marble game
Scope data export mat
【文件系统】如何在ubi之上运行squashfs
Oracle 序列+触发器
Smartinstantiationawarebeanpostprocessor of the extension point series determines which construction method to execute - Chapter 432
Essay learning record essay multi label Global
XAF Bo of dev XPO comparison
One of the characteristic agricultural products that make Tiantou village, Guankou Town, Xiamen into a "sweet" village is
OpenGL es: (2) relationship between OpenGL es, EGL and glsl
云盘里资料被和谐了,怎么办?
SystemVerilog学习-06-类的封装
PLA not pasted on the bed: 6 simple solutions
JDBC connection pool
基于LabVIEW的计时器
Seven major technical updates that developers should pay most attention to on build 2022
three.js小结
Codeforces Round #803 (Div. 2)vp