Skip to main content
added 91 characters in body
Source Link
Makonede
  • 6.6k
  • 20
  • 49

05AB1E, 5 4 bytes

Ties emanresu A's Vyxal answer for #1.

2(вO

Takes advantage of the fact that only 1 is truthy in 05AB1E.

Try it online! or verify all test cases at once.

2(вO  # full program
   O  # push sum of...
  в   # list of base-10 values of base...
 (    # negative...
2     # literal....
  в   # digits of...
      # implicit input
      # implicit output

05AB1E, 5 4 bytes

2(вO

Takes advantage of the fact that only 1 is truthy in 05AB1E.

Try it online or verify all test cases at once.

2(вO  # full program
   O  # push sum of...
  в   # list of base-10 values of base...
 (    # negative...
2     # literal....
  в   # digits of...
      # implicit input
      # implicit output

05AB1E, 5 4 bytes

Ties emanresu A's Vyxal answer for #1.

2(вO

Try it online!

2(вO  # full program
   O  # push sum of...
  в   # list of base-10 values of base...
 (    # negative...
2     # literal....
  в   # digits of...
      # implicit input
      # implicit output
Clarified that only 1 is truthy in 05AB1E
Source Link
Kevin Cruijssen
  • 131.4k
  • 13
  • 144
  • 384

05AB1E, 5 4 bytes

2(вO

Takes advantage of the fact that only 1 is truthy in 05AB1E.

Try it online! or verify all test cases at once.

2(вO  # full program
   O  # push sum of...
  в   # list of base-10 values of base...
 (    # negative...
2     # literal....
  в   # digits of...
      # implicit input
      # implicit output

05AB1E, 5 4 bytes

2(вO

Try it online!

2(вO  # full program
   O  # push sum of...
  в   # list of base-10 values of base...
 (    # negative...
2     # literal....
  в   # digits of...
      # implicit input
      # implicit output

05AB1E, 5 4 bytes

2(вO

Takes advantage of the fact that only 1 is truthy in 05AB1E.

Try it online or verify all test cases at once.

2(вO  # full program
   O  # push sum of...
  в   # list of base-10 values of base...
 (    # negative...
2     # literal....
  в   # digits of...
      # implicit input
      # implicit output
No longer beats all other answers
Source Link
emanresu A
  • 44.2k
  • 5
  • 100
  • 240

05AB1E, 5 4 bytes

2(вO

Try it online! Beats all other answers.

2(вO  # full program
   O  # push sum of...
  в   # list of base-10 values of base...
 (    # negative...
2     # literal....
  в   # digits of...
      # implicit input
      # implicit output

05AB1E, 5 4 bytes

2(вO

Try it online! Beats all other answers.

2(вO  # full program
   O  # push sum of...
  в   # list of base-10 values of base...
 (    # negative...
2     # literal....
  в   # digits of...
      # implicit input
      # implicit output

05AB1E, 5 4 bytes

2(вO

Try it online!

2(вO  # full program
   O  # push sum of...
  в   # list of base-10 values of base...
 (    # negative...
2     # literal....
  в   # digits of...
      # implicit input
      # implicit output
deleted 99 characters in body
Source Link
Makonede
  • 6.6k
  • 20
  • 49
Loading
Source Link
Makonede
  • 6.6k
  • 20
  • 49
Loading