当前位置:网站首页>Approximate sum count (approximate
Approximate sum count (approximate
2022-07-02 11:11:00 【lcxdz】
Add link description
720 It's a very strange number
#include <bits/stdc++.h>
using namespace std;
//#define int long long
typedef long long ll;
ll result(ll n)
{
ll cnt = 0;
for (ll i = 1; i <= n / i; i++)
{
if (n % i == 0){
cnt += i;
if (n / i != i && n / i != n)
cnt += n / i;
}
}
cout<<cnt<<endl;
return cnt;
}
int main()
{
ll n;
cin >> n;
ll ans = 0;
while (n != 1)
{
ans++;
n = result(n);
}
cout << ans;
return 0;
}
边栏推荐
- 主键策略问题
- HDU1236 排名(结构体排序)
- MTK full dump抓取
- Creation and use of unified links in Huawei applinking
- PCL point cloud to depth image
- PCL projection point cloud
- [play with FPGA learning 5 in simple terms ----- reset design]
- Luogu p4281 [ahoi2008] emergency gathering / gathering (tree doubling LCA)
- K-d tree and octree of PCL
- Iii. Système de démarrage et d'horloge à puce
猜你喜欢

Hdu1236 ranking (structure Sorting)

Special topic of binary tree -- acwing 1497 Traversal of the tree (use post and mid order traversal to build a binary tree)

Common methods of JS array

How to implement tabbar title bar with list component

JSP webshell free -- the basis of JSP

QT learning diary 8 - resource file addition

【深入浅出玩转FPGA学习4----漫谈状态机设计】

JVM之垃圾回收器

flink二開,實現了個 batch lookup join(附源碼)

一招快速实现自定义快应用titlebar
随机推荐
华为AppLinking中统一链接的创建和使用
The first white paper on agile practice in Chinese enterprises was released | complete download is attached
Iii. Système de démarrage et d'horloge à puce
[AI application] Hikvision ivms-4200 software installation
TIPC messaging3
2022-06-17
JSP webshell免殺——JSP的基礎
[applinking practical case] share in app pictures through applinking
【深入浅出玩转FPGA学习4----漫谈状态机设计】
MySQL lethal serial question 3 -- are you familiar with MySQL locks?
P1055 [noip2008 popularization group] ISBN number
软件产品管理系统有哪些?12个最佳产品管理工具盘点
K-d tree and octree of PCL
Jenkins安装
QT学习日记8——资源文件添加
Special topic of binary tree -- [deep base 16. Example 7] ordinary binary tree (simplified version) (multiset seeks the precursor and subsequent sentry Art)
洛谷 P5536 【XR-3】核心城市(贪心 + 树形 dp 寻找树的中心)
TIPC Cluster5
【AppLinking实战案例】通过AppLinking分享应用内图片
【深入浅出玩转FPGA学习2----设计技巧(基本语法)】