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

Commonmark migration
Source Link

Python 2, (削除) 61 (削除ここまで) 56 bytes

lambda a,b:len([n for n in range(a,b+1) if not"5"in`n`])

#Python 2, (削除) 61 (削除ここまで) 56 bytes lambda a,b:len([n for n in range(a,b+1) if not"5"inn]) -5 bytes thanks to tukkaaX

#Python 2, (削除) 61 (削除ここまで) 56 bytes lambda a,b:len([n for n in range(a,b+1) if not"5"inn]) -5 bytes thanks to tukkaaX

Python 2, (削除) 61 (削除ここまで) 56 bytes

lambda a,b:len([n for n in range(a,b+1) if not"5"in`n`])

-5 bytes thanks to tukkaaX

added 22 characters in body
Source Link
sagiksp
  • 1.4k
  • 12
  • 19

#Python 2,(削除) 61 (削除ここまで) 56 bytes lambda a,b:len([n for n in range(a,b+1) if not"5"inn]) -5 bytes thanks to tukkaaX

#Python, 56 bytes lambda a,b:len([n for n in range(a,b+1) if not"5"inn]) -5 bytes thanks to tukkaaX

#Python 2,(削除) 61 (削除ここまで) 56 bytes lambda a,b:len([n for n in range(a,b+1) if not"5"inn]) -5 bytes thanks to tukkaaX

deleted 54 characters in body
Source Link
sagiksp
  • 1.4k
  • 12
  • 19

#Python, 6156 bytes lambda sa,eb:len([x[n for xn in range(sa,e+1)if not "5" in str(xb+1) if not"5"inn]) Probably the worst python golf in the history of the site, but I dont care.-5 bytes thanks to tukkaaX

#Python, 61 bytes lambda s,e:len([x for x in range(s,e+1)if not "5" in str(x)]) Probably the worst python golf in the history of the site, but I dont care.

#Python, 56 bytes lambda a,b:len([n for n in range(a,b+1) if not"5"inn]) -5 bytes thanks to tukkaaX

Source Link
sagiksp
  • 1.4k
  • 12
  • 19
Loading

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