文章
10
粉丝
0
获赞
53
访问
2.0k
#include <stdio.h>
int main()
{
int length = 0;
int longest = 0;
int position = 0;
int number;
scanf("%d",&number);
for(int i = 2;i<number;i++)
{
if(number % i == 0)
{
length += 1;
}
else
{
length = 0;
}
if(length > longest)
{
longest = length;
position = i-longest+1;
 ...
登录后发布评论
牛逼