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 467 characters in body
Source Link
Leo
  • 12.9k
  • 1
  • 33
  • 63

Retina, 3 bytes

.
1

Try it online!

Takes inputs separated by space (or any single non-newline character)

Replaces all digits with 1, and joins the resulting numbers with another 1. I couldn't find a counterexample, but I don't have a proof of correctness, so any help is appreciated :)

Proof of correctness

Courtesy of Martin Ender

Retina, 3 bytes

.
1

Try it online!

Takes inputs separated by space (or any single non-newline character)

Replaces all digits with 1, and joins the resulting numbers with another 1. I couldn't find a counterexample, but I don't have a proof of correctness, so any help is appreciated :)

Retina, 3 bytes

.
1

Try it online!

Takes inputs separated by space (or any single non-newline character)

Replaces all digits with 1, and joins the resulting numbers with another 1.

Proof of correctness

Courtesy of Martin Ender

Source Link
Leo
  • 12.9k
  • 1
  • 33
  • 63

Retina, 3 bytes

.
1

Try it online!

Takes inputs separated by space (or any single non-newline character)

Replaces all digits with 1, and joins the resulting numbers with another 1. I couldn't find a counterexample, but I don't have a proof of correctness, so any help is appreciated :)

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