Skip to main content
saved 2 bytes
Source Link
flornquake
  • 1.6k
  • 11
  • 26

Python 3, 6262 60 bytes

lambda nd:sum(b>>5<=b%32+23b//25<=b%25+23-nd/5<=7for b in b'\xa0cfhjlnP24'b'BUNSWYQ+-}')+1

Try it online!Try it online!

There's an invisible (on Stack Exchange) \x18 character at the end of the string.

Python 3, 62 bytes

lambda n:sum(b>>5<=b%32+23-n/5<=7for b in b'\xa0cfhjlnP24')+1

Try it online!

There's an invisible (on Stack Exchange) \x18 character at the end of the string.

Python 3, 62 60 bytes

lambda d:sum(b//25<=b%25+23-d/5<=7for b in b'BUNSWYQ+-}')+1

Try it online!

There's an invisible (on Stack Exchange) \x18 character at the end of the string.

deleted 25 characters in body; added 87 characters in body
Source Link
flornquake
  • 1.6k
  • 11
  • 26

Python 3.8Python 3, 62 bytes

lambda n:sum(b>>5<=b%32+23-n/5<=7for b in b'\xa0cfhjlnP24')+1

Try it online!Try it online!

There's an invisible (on Stack Exchange) \x18 character at the end of the string.

Python 3.8, 62 bytes

lambda n:sum(b>>5<=b%32+23-n/5<=7for b in b'\xa0cfhjlnP24')+1

Try it online!

Python 3, 62 bytes

lambda n:sum(b>>5<=b%32+23-n/5<=7for b in b'\xa0cfhjlnP24')+1

Try it online!

There's an invisible (on Stack Exchange) \x18 character at the end of the string.

Source Link
flornquake
  • 1.6k
  • 11
  • 26

Python 3.8, 62 bytes

lambda n:sum(b>>5<=b%32+23-n/5<=7for b in b'\xa0cfhjlnP24')+1

Try it online!