2 shunfurh shunfurh 于 2017.09.02 19:00 提问

Number of People

There are N people, every day they devide into some groups to have a party, and the people in each group is the same. And further more, in a cycle, the number of people of a group is different every day. give you the number of days D in the cycle, you should find the value of N. If there are more than one solution, find the minimum one.

Input:

The number of days D in the cycle(D<10000). The input is end with EOF.

Output:

For each test case, ouput one line, the number N, as the multiples of its prime number factor. small to large. see the sample output.

Sample Input:
12
8
Sample Output:
2^2 * 3^1 * 5^1
2^3 * 3^1

1个回答

caozhy
caozhy   Ds   Rxr 2017.09.17 00:26
已采纳
Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!
其他相关推荐
IELTS12 TEST7 it is necessary to spend large sums of money on constructing new railway lines
IELTS12 Test 3的话题,主要是探讨城市是否把大量的资金投入到建造高速铁炉上,还是把大量资金投入到自身城市交通的建设上。 我的观点就是,从国家战略和城际发展的角度,我们应该大力发展城际间的高速铁炉,因为其经济效益不可估量。 但是也要根据情况,如果城市本身城际交通已经很好了,而城市内部的交通却落后,像以前的武汉,这个时候,我们的重点应该是把主要资金投入到自身城市建设上来。 Topic
poj3696 The Luckiest number 数论好题
The Luckiest number Time Limit: 1000MS   Memory Limit: 65536K Total Submissions: 3536   Accepted: 917 Description Chinese people think of '8' as the lucky digit. Bob al
C++创建People类--练习
题目描述 /*设计一个用于人事管理的People(人员)类。*/ /* 考虑到通用性,这里只抽象所有类型人员都具有的属性: number(编号)、sex(性别)、birthday(出生日期)、id(身份证号)等等。 其中“出生日期”定义为一个“日期”类内嵌子对象。 用成员函数实现对人员信息的录入和显示。 要求包括:构造函数和析构函数、拷贝构造函数、内联成员函数、聚集。 */ 代码如下 ...
codeforces 965c Greedy Arkady (思维题)
C. Greedy Arkadytime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputkk people want to split nn candies between them. Each candy should be given to exac...
Perlin Noise
Many people have used random number generators in their programs to create unpredictability, make the motion and behavior of objects appear more natural, or generate textures. Random number generators
PeopleSoft 开发 - 01 People Code 语法基础
PeopleCode 语言结构 数据类型 常规数据类型包括 number,date,string.可以进行基本计算。 Object 数据类型用于实例化。 在使用变量前要先声明。 常规数据类型: Any 没有声明类型的默认为 ANY类型,由系统自动判断类型 Boolean Date DateTime Float Int
IELTS 11 TEST3 reasons of learning a language
IELS11, TEST3 的作文,主要是说对学外语的一些看法,要么为了环游世界要么为了工作,然后给出你自己的理由。我的理由是我遇见了好的英语老师,然后帮助我克服了难关,当然,学习英语对我的职业发展也是很有好处的,另外,我喜欢学习英语,不仅是专业需要,而且还会帮我许多。欢迎大家批评指正 Topic Some people say that the only reason for learnin
IELTS12 Test6 the population of some countries include a relatively large number of young adults
Topic At the present time, the population of some countries includes a relatively large number of young adults, compared with the number of older people. Do the advantages of this situation outw
java 申明对象和new一个对象如: People peple和People people=new People()
首先,new这个关键字是在堆内存中创建一个类的实例(也可以说是一个对象) 而在People people,people只是一个声明,是在栈内存中创建一个People类型的引用,他此时没有指向任何对象。 当我们需要用到一个类中的方法时,就必须先把类创建一个对象,才能使用类中的方法People people=new People()。而只是申明对象是不行的People poeple 是不行的 new
英语作文1:famous people should take more responsibilities
famous people should take more responsibilities Everyone is concerned about whether the famous people should undertake more responsibilities than ordinary people.while it is true that famous