Ad
  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    Because of call PbZ9l_m4S$aTW8jy9eHsKxBTp9p3h '5'. The EBNF defines that arguments to call must be variable names, yet here it is passing a char, which is invalid.

  • Custom User Avatar

    Hi,

    Could somebody please explain why code below is not valid and should throw error:

        var f$ocAdSY3Tpb1eMB$SzVylg0yezu $sJP10cUAn8eqvikoKhhZUMK38 Z81_40Hv1sSvoeoi3iZY0UQeSfmt Xo9XkP8XwwVcJiquogmXMrCeF4E
        read f$ocAdSY3Tpb1eMB$SzVylg0yezu
        cmp 100 f$ocAdSY3Tpb1eMB$SzVylg0yezu $sJP10cUAn8eqvikoKhhZUMK38
        ifeq $sJP10cUAn8eqvikoKhhZUMK38 -1
            call mSP3RrLQPuEEpoXMDXnK7TZiD0EBRgdJCcLKuTJ f$ocAdSY3Tpb1eMB$SzVylg0yezu
        end
        ifneq $sJP10cUAn8eqvikoKhhZUMK38 0
            msg "7//77"
        end
        ifeq $sJP10cUAn8eqvikoKhhZUMK38 1
            call PbZ9l_m4S$aTW8jy9eHsKxBTp9p3h '5'
        end
        proc mSP3RrLQPuEEpoXMDXnK7TZiD0EBRgdJCcLKuTJ $$
            b2a $$ $$ Z81_40Hv1sSvoeoi3iZY0UQeSfmt Xo9XkP8XwwVcJiquogmXMrCeF4E
            msg f$ocAdSY3Tpb1eMB$SzVylg0yezu Z81_40Hv1sSvoeoi3iZY0UQeSfmt Xo9XkP8XwwVcJiquogmXMrCeF4E
        end
        proc PbZ9l_m4S$aTW8jy9eHsKxBTp9p3h $_
            a2b $_ $_ $_ $_
            call mSP3RrLQPuEEpoXMDXnK7TZiD0EBRgdJCcLKuTJ $_
        end
    
  • Custom User Avatar

    very beautiful solution

  • Custom User Avatar

    This is clever, but not so intuitive in my opinion.
    But I'm just getting started with Python and programming in general, so I might change my opinion further down the rabbit hole!

  • Custom User Avatar

    Hello,
    from what I understand, if (number % a > 0 or number % b > 0) it will return False because then that is some value.
    number % a here is equals to number % a > 0.
    so, the program returns True if number % a and number % b DO NOT have any values( because then they are of value 0 )

  • Custom User Avatar

    This is my first translation, thank you for your feedback.

    I will update translation and fix everything you mentioned in comments.

  • Custom User Avatar
    1. The tests in JavaScript are bad, and new kata versions should not repeat the mistakes of the old ones.
    2. The anticheat is still totally useless.
  • Custom User Avatar

    My translation looks same as original JavaScript kata.
    In my opinion tests must work in the same way for all languages.

  • Custom User Avatar
    • Sorting is not disabled
    • No random tests
    • Creating unnecessary functions to test the result