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

Perl 5 , 61 bytes

Perl 5 -plF, 56 bytes

Saved 5 bytes thanks to @Xcali !

map$;[$_].=$F[$_],0..@F;$-++@F}{($_)=grep$-.==y///c*!/(.).*1円/,@

Try it online! Try it online!

Perl 5 , 61 bytes

map$;[$_].=$F[$_],0..@F;$-++}{($_)=grep$-==y///c*!/(.).*1円/,@

Try it online!

Perl 5 -plF, 56 bytes

Saved 5 bytes thanks to @Xcali !

map$;[$_].=$F[$_],0..@F}{($_)=grep$.==y///c*!/(.).*1円/,@

Try it online!

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

Perl 5, 61 bytes

map$;[$_].=$F[$_],0..@F;$-++}{($_)=grep$-==y///c*!/(.).*1円/,@

Try it online!

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