Skip to main content
added 89 characters in body
Source Link
rak1507
  • 4.7k
  • 11
  • 16

APL (Dyalog Extended), 40 bytes

+/1+⍎¨'02210313074020029000033739'[⎕A⍳⎕]

The same method as the K answer, index into a list of scores, add 1 to them, and sum.

Try it online!

APL (Dyalog Extended), 40 bytes

+/1+⍎¨'02210313074020029000033739'[⎕A⍳⎕]

Try it online!

APL (Dyalog Extended), 40 bytes

+/1+⍎¨'02210313074020029000033739'[⎕A⍳⎕]

The same method as the K answer, index into a list of scores, add 1 to them, and sum.

Try it online!

Source Link
rak1507
  • 4.7k
  • 11
  • 16

APL (Dyalog Extended), 40 bytes

+/1+⍎¨'02210313074020029000033739'[⎕A⍳⎕]

Try it online!