Seu trabalho é considerar esse número como entrada (embora também deva funcionar com qualquer outro número):
18349570345710975183495703457109751834957034571097518349570345710975183495703457109761834957034571097518349570345710975183495703457109751834957034571097518349570345710976183495703457109751834957034571097518349570345710975183495703457109751834957034571097618349570345710975183495703457109751834957034571097518349570345710975183495703457109761834957034571097518349570345710975183495703457109751834957034571097518349570345710976183495703457109751834957034571097518349570345710975183495703457109751834957034571097618349570345710975183495703457109751834957034571097518349570345710975183495703457109761834957034571097518349570345710975183495703457109751834957034571097518349570345710976183495703457109751834957034571097518349570345710975183495703457109751834957034571097618349570345710975183495703457109751834957034571097518349570345710975183495703457109761834957034571097518349570345710975183495703457109751834957034571097518349570345710976183495703457109751834957034571097518349570345710975183495703457109751834957034571097618349570345710975183495703457109751834957
e encontre o menor período, neste caso:
1834957034571097518349570345710975183495703457109751834957034571097518349570345710976
Boa sorte e divirta-se!
Esclarecimentos :
- O número de entrada possui no mínimo um período e um período parcial
- O período começa sempre no início do número de entrada
- Período significa, neste caso, uma sequência de números que se repete.
>
está voltado para o lado errado.