Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Code Golf

Return to Answer

added 41 characters in body
Source Link
Emigna
  • 53.2k
  • 5
  • 44
  • 164

2sable, 6(削除) 6 (削除ここまで) 5 bytes

Saved a byte thanks to Adnan

`Ÿ5¢_OŸ5¢_O

Try it online! Try it online!

Explanation

 Ÿ # inclusive range
 5¢ # count 5's in each element of the range
 _ # negate
 O # sum

Note: This works due to a bug in ¢ making the function apply itself to each element instead of counting matching elements in the list.

2sable, 6 bytes

`Ÿ5¢_O

Try it online!

Explanation

 # inclusive range
 5¢ # count 5's in each element of the range
 _ # negate
 O # sum

Note: This works due to a bug in ¢ making the function apply itself to each element instead of counting matching elements in the list.

2sable, (削除) 6 (削除ここまで) 5 bytes

Saved a byte thanks to Adnan

Ÿ5¢_O

Try it online!

Explanation

 Ÿ # inclusive range
 5¢ # count 5's in each element of the range
 _ # negate
 O # sum

Note: This works due to a bug in ¢ making the function apply itself to each element instead of counting matching elements in the list.

added 144 characters in body
Source Link
Emigna
  • 53.2k
  • 5
  • 44
  • 164

2sable, 6 bytes

`Ÿ5¢_O

Try it online!

Explanation

`Ÿ # inclusive range
 5¢ # count 5's in each element of the range
 _ # negate
 O # sum

Note: This works due to a bug in ¢ making the function apply itself to each element instead of counting matching elements in the list.

2sable, 6 bytes

`Ÿ5¢_O

Try it online!

Explanation

`Ÿ # inclusive range
 5¢ # count 5's in each element of the range
 _ # negate
 O # sum

2sable, 6 bytes

`Ÿ5¢_O

Try it online!

Explanation

`Ÿ # inclusive range
 5¢ # count 5's in each element of the range
 _ # negate
 O # sum

Note: This works due to a bug in ¢ making the function apply itself to each element instead of counting matching elements in the list.

Source Link
Emigna
  • 53.2k
  • 5
  • 44
  • 164

2sable, 6 bytes

`Ÿ5¢_O

Try it online!

Explanation

`Ÿ # inclusive range
 5¢ # count 5's in each element of the range
 _ # negate
 O # sum

AltStyle によって変換されたページ (->オリジナル) /