hexlet-codebattle / hexlet-codebattle/battle_asserts
Задача reciprocal_cycles.clj у вас решена неправильно
- Dominant language
- Clojure
- Stars
- 71
- Forks
- 67
- PR merge metrics
- No merged PRs in 30d
Description
https://github.com/hexlet-codebattle/battle_asserts/blob/master/src/battle_asserts/issues/reciprocal_cycles.clj
в тестах с параметром до 100 правильные ответы у вас, только 7 и 81, но это неверно, взгляните на скриншот

Скриншот отсюда: 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
Contributor guide
Assessment
This issue has not been assessed yet.