您的工作是将此数字作为输入(尽管它也应该与任何其他数字一起使用):
18349570345710975183495703457109751834957034571097518349570345710975183495703457109761834957034571097518349570345710975183495703457109751834957034571097518349570345710976183495703457109751834957034571097518349570345710975183495703457109751834957034571097618349570345710975183495703457109751834957034571097518349570345710975183495703457109761834957034571097518349570345710975183495703457109751834957034571097518349570345710976183495703457109751834957034571097518349570345710975183495703457109751834957034571097618349570345710975183495703457109751834957034571097518349570345710975183495703457109761834957034571097518349570345710975183495703457109751834957034571097518349570345710976183495703457109751834957034571097518349570345710975183495703457109751834957034571097618349570345710975183495703457109751834957034571097518349570345710975183495703457109761834957034571097518349570345710975183495703457109751834957034571097518349570345710976183495703457109751834957034571097518349570345710975183495703457109751834957034571097618349570345710975183495703457109751834957
并找到最小周期,在这种情况下为:
1834957034571097518349570345710975183495703457109751834957034571097518349570345710976
祝好运并玩得开心点!
说明:
- 输入的数字至少有一个周期和一个局部周期
- 句号始终从输入数字的开头开始
- 在这种情况下,句号表示重复的数字序列。
@steveverrill:不,输入数字本身没有最大大小,但是让我们将其限制为2 ^ 16位数字(因为您询问了)。
—
Michael Bolli 2014年
什么时期?
—
FUZxxl 2014年
在这种情况下,@ FUZxxl:重复的数字序列。
—
Michael Bolli 2014年
您要的内容很明确,但您实际上不应该将其称为句点:在数学中,句点仅指无数次重复小数点后的数字。相反,您的测试输入是整数,并且具有有限的位数。
—
GOTO
>
为1000,那么您的做法是错误的。