当前位置:网站首页>Game improvement of smart people: Lesson 2 of Chapter 3: number of factors
Game improvement of smart people: Lesson 2 of Chapter 3: number of factors
2022-07-24 04:13:00 【Shining Sirius】
#include <iostream>
#include <cstdio>
using namespace std;
int k,i,s,t,j;
int f(int a)
{
s=0;
for (j=1;j*j<=a;j++)
{
if (a%j==0)
s+=2;
}
j--;
if (j*j==a)
s--;
return s;
}
int main()
{
cin >>k;
for (i=1;i<=20000;i++)
{
if (f(i)==k)
{
t=i;
cout <<i <<endl;
break;
}
}
if (t==0)
cout <<"NO SOLUTION";
else
{
for (i=1;i<=t/2;i++)
if (t%i==0)
cout <<i <<" ";
cout <<t;
}
return 0;
}边栏推荐
- 训练数据量不只适用于.z据接收方对数字视
- Collection of test case design methods
- How to change the direction of this gracefully
- Redis sentinel mode, master node check script
- Leetcode 20 valid parentheses, 33 search rotation sort array, 88 merge two ordered arrays (nums1 length is m+n), 160 intersecting linked list, 54 spiral matrix, 415 character addition (cannot be direc
- BGP notes (II)
- MLP - Multilayer Perceptron
- "Wei Lai Cup" 2022 Niuke summer multi school training camp 1 (summary of some topics)
- Extend the connection boundary, expand the business scope, and comprehensively move towards the era of Intelligent Cloud network 2.0
- Yu zhirs] below refers to the return structure push sent to the remote terminal
猜你喜欢

Preliminary use of swagger2

buu web

ACM warm-up Exercise 4 in 2022 summer vacation (summary)
![[development technology] spingboot database and Persistence technology, JPA, mongodb, redis](/img/fb/bb4a26699e5ec10c6881a4c95ac767.png)
[development technology] spingboot database and Persistence technology, JPA, mongodb, redis

Demining game (analysis)

直播课堂系统04-创建service模块

Extend the connection boundary, expand the business scope, and comprehensively move towards the era of Intelligent Cloud network 2.0

Ambire wallet opens twitter spaces series

Chapter III query processing of PostgreSQL Guide - Insider exploration

Configure IPv6 over IP manual tunnel using routing protocol
随机推荐
Live broadcast preview | practice sharing of opengauss' autonomous operation and maintenance platform dbmind
Oracle的并行技术
1.7.1 正误问题(中缀表达式)
PostgreSQL source code learning (32) -- checkpoint ④ - core function createcheckpoint
Iqoo 10 series attacks originos original system to enhance mobile phone experience
Upgrade POI TL version 1.12.0 and resolve the dependency conflict between the previous version of POI (4.1.2) and easyexcel
Codeforces Round #808 (Div. 2) A - D
Configure IPv6 over IP manual tunnel using routing protocol
BGP notes (II)
iPhone手机绑定163邮箱解决方案
Leetcode 20 valid parentheses, 33 search rotation sort array, 88 merge two ordered arrays (nums1 length is m+n), 160 intersecting linked list, 54 spiral matrix, 415 character addition (cannot be direc
Leetcode (Sword finger offer) - 11. Minimum number of rotation array
Baidu search cracking down on pirated websites: why Internet content infringement continues despite repeated prohibitions
Once svchost Troubleshooting of exe process occupying a large amount of network bandwidth
Ros2 common command line tools organize ros2cli
Ambire wallet opens twitter spaces series
Codeforces Round #807 (Div. 2) A - D
Therefore, the command can be transmitted to the system and confirmed by the user. For master
Pyth deinitialization averages on many machine decision boundaries, starting on the bus
svg图片颜色的修改 没有花里胡哨