Skip to content

Задача reciprocal_cycles.clj у вас решена неправильно #1036

@maddbuzz

Description

@maddbuzz

https://github.com/hexlet-codebattle/battle_asserts/blob/master/src/battle_asserts/issues/reciprocal_cycles.clj
в тестах с параметром до 100 правильные ответы у вас, только 7 и 81, но это неверно, взгляните на скриншот
image
Скриншот отсюда: https://en.wikipedia.org/wiki/Repeating_decimal#Table_of_values
Там же есть правильный алгоритм вычисления: https://en.wikipedia.org/wiki/Repeating_decimal#Algorithm_for_positive_bases
Воспроизвел его здесь: https://replit.com/@AndrieiA8/hard-Task-reciprocalcycles?v=1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions