• Custom User Avatar

    I just hardcoded the table with 6000 characters. But I'm afraid this can be golfed a lot with compression.

    Definitely fits into ~1500 characters, see my solution. There are legit solution (e.g. this one) that are longer than that...

  • Custom User Avatar

    Fixed, thanks.

  • Custom User Avatar

    Examples should be language-agnostic (remove the i_before_e from the example and just show input to output transformation)

  • Custom User Avatar

    itertools.batched added in Python v3.12. Codewars uses Python v3.11.

  • Custom User Avatar

    Other than that, every other issue has been solved.

    There are "четыре *тысячная" and "девять *тысячная" remaining in the description.

  • Custom User Avatar
  • Custom User Avatar

    Thanks for explaining.

    I saw that in some test cases, the number 2 also happens to have something like this.

    For example, the number 32056:

    • My answer: тридцать два тысячи пятьдесят шесть
    • Expected: тридцать две тысячи пятьдесят шесть

    Is this also caused by the masculine-feminine relation between words?

    Also, I feel like this is something that should be mentioned in the description. I'm not a russian speaker and currently confused as to how to differ between masculine and feminine words.

  • Custom User Avatar

    Could you briefly explain the "девятьсот" exceptions or link an article to it? So far, I've only seen people argue on this topic on Yandex.

    Other than that, every other issue has been solved.

  • Custom User Avatar

    My bad. Intended to remove that before publishing but I forgot. Now, the "blyat'" is changed to "comrade".

  • Custom User Avatar

    "Odin" declines by gender: masculine - "odin", feminine - "odna", neuter (not in the kata) - "odno". The default form is masculine, while the word "tysyacha" (thousand) and the implicit word for 'part' (either whole as in 1.2 or fractional as in 2.1) are feminine.

  • Custom User Avatar
    • *двесте -> двести;
    • *девятсот (in some examples) -> девятьсот;
    • тысяч - thousand, expected to be nominative singular in the list starting with "1000 ->" -> тысяча;
    • *десяти тысячных - ten-thousandths, genitive plural -> десятитысячных;
    • "1.234 ... одна целая *двесте тридцать четыре *тысячная", same with 991.999 -> одна целая двести тридцать четыре тысячных.
  • Custom User Avatar

    Seriously, blyatspeak in tests?

  • Custom User Avatar

    Can you explain to me or refer to part of the description on why it should replace odin with odna even though it's not a float?

  • Custom User Avatar

    Right, I speed read that part and now I know why after reading it again. Thanks.

  • Custom User Avatar

    Please read the description carefully, especially the floats section.

  • Loading more items...