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 580 characters in body
Source Link
Business Cat
  • 9.2k
  • 1
  • 18
  • 37

CJam, 38 bytes

" ""Programming Puzzles""Dpef!Hpmg":(?

Try it online! or with spaces removed

Explanation

" " e# Push this string.
"Programming Puzzles" e# Push "Programming Puzzles".
"Dpef!Hpmg":( e# Push "Dpef!Hpmg" and decrement each char, giving "Code Golf".
? e# If the first string is true (non-empty) return the second string,
 e# else return the third.

Whether spaces are in the program or not determines if the first string is truthy or falsy.

CJam, 38 bytes

" ""Programming Puzzles""Dpef!Hpmg":(?

Try it online!

CJam, 38 bytes

" ""Programming Puzzles""Dpef!Hpmg":(?

Try it online! or with spaces removed

Explanation

" " e# Push this string.
"Programming Puzzles" e# Push "Programming Puzzles".
"Dpef!Hpmg":( e# Push "Dpef!Hpmg" and decrement each char, giving "Code Golf".
? e# If the first string is true (non-empty) return the second string,
 e# else return the third.

Whether spaces are in the program or not determines if the first string is truthy or falsy.

Source Link
Business Cat
  • 9.2k
  • 1
  • 18
  • 37

CJam, 38 bytes

" ""Programming Puzzles""Dpef!Hpmg":(?

Try it online!

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