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 78 characters in body
Source Link
Dom Hastings
  • 24.6k
  • 4
  • 58
  • 94

Perl 5 + -plF, 3832 bytes

-7 bytes thanks to @Nahuel Fouilleul!

$s+=/\d/?$_:ord$s+=ord(lc)%32for@F;$_&&=1>$s%@F%48for@F;$_&&=1>$s%@F

Try it online! Try it online!

Perl 5 + -plF, 38 bytes

-7 bytes thanks to @Nahuel Fouilleul!

$s+=/\d/?$_:ord()%32for@F;$_&&=1>$s%@F

Try it online!

Perl 5 + -plF, 32 bytes

-7 bytes thanks to @Nahuel Fouilleul!

$s+=ord(lc)%48for@F;$_&&=1>$s%@F

Try it online!

added 78 characters in body
Source Link
Dom Hastings
  • 24.6k
  • 4
  • 58
  • 94

Perl 5 + -MList::Util+sum -plF, 4538 bytes

-7 bytes thanks to @Nahuel Fouilleul !

$_=(sum map$s+=/\d/?$_:ord()%32,@F)/@F;$_&&=!/\./%32for@F;$_&&=1>$s%@F

Try it online! Try it online!

Perl 5 + -MList::Util+sum -plF, 45 bytes

$_=(sum map/\d/?$_:ord()%32,@F)/@F;$_&&=!/\./

Try it online!

Perl 5 + -plF, 38 bytes

-7 bytes thanks to @Nahuel Fouilleul !

$s+=/\d/?$_:ord()%32for@F;$_&&=1>$s%@F

Try it online!

Source Link
Dom Hastings
  • 24.6k
  • 4
  • 58
  • 94

Perl 5 + -MList::Util+sum -plF, 45 bytes

$_=(sum map/\d/?$_:ord()%32,@F)/@F;$_&&=!/\./

Try it online!

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