Skip to main content
added 464 characters in body
Source Link
Mukundan314
  • 12.7k
  • 1
  • 16
  • 58

Pyth, 36 bytes

s/RC-QTrV"2FUdnx‚Œ– ª¾""Qjyƒ—¡°¿Éâû

Try it online!

Explanation

              "...   # String literal with end of ranges minus 10 as characters
         "..."       # String literal with start of ranges minus 10 as characters
       rV            # Generate the ranges
 /R                  # Count occurrences of 
   C-QT              # input minus 10 converted to a characters (based on ascii value)
                     # in each of the ranges
s                    # sum

Pyth, 36 bytes

s/RC-QTrV"2FUdnx‚Œ– ª¾""Qjyƒ—¡°¿Éâû

Try it online!

Pyth, 36 bytes

s/RC-QTrV"2FUdnx‚Œ– ª¾""Qjyƒ—¡°¿Éâû

Try it online!

Explanation

              "...   # String literal with end of ranges minus 10 as characters
         "..."       # String literal with start of ranges minus 10 as characters
       rV            # Generate the ranges
 /R                  # Count occurrences of 
   C-QT              # input minus 10 converted to a characters (based on ascii value)
                     # in each of the ranges
s                    # sum
deleted 6 characters in body
Source Link
Mukundan314
  • 12.7k
  • 1
  • 16
  • 58

Pyth, 3936 bytes

s/RRC-QTrVCM"2FUdnx‚Œ–QTrV"2FUdnx‚Œ– ª¾"CM"Qjyƒ—¡°¿Éâûª¾""Qjyƒ—¡°¿Éâû

Try it online!Try it online!

Pyth, 39 bytes

s/R-QTrVCM"2FUdnx‚Œ– ª¾"CM"Qjyƒ—¡°¿Éâû

Try it online!

Pyth, 36 bytes

s/RC-QTrV"2FUdnx‚Œ– ª¾""Qjyƒ—¡°¿Éâû

Try it online!

Source Link
Mukundan314
  • 12.7k
  • 1
  • 16
  • 58

Pyth, 39 bytes

s/R-QTrVCM"2FUdnx‚Œ– ª¾"CM"Qjyƒ—¡°¿Éâû

Try it online!