Skip to main content
deleted 11 characters in body
Source Link
Sp3000
  • 62.3k
  • 13
  • 117
  • 292

CJam, 5 4 lines, 162 bytes

"Hello ")))))))))))))))))))))))))))))))))))68S\cel "Wor ")))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))@SX\c| 

Same number of lines as Insomnia! (but a lot more bytes)

Try it online.

Explanation

"Hello\n" Push "Hello" and a newline ) Uncons the newline )))...))) Increment the newline into a "," 68 68S\ Push 68 S  and a space then swap, leaving Push68 aon spacetop \cc Swap theConvert 68 and space and convertinto 68a ->char "D" el Lowercase "D" into "d" "Wor\n" Push "Wor" and a newline ) Uncons the newline )))...))) Increment the newline into an "l" @ Rotate top thethree elements, moving the "d" to the top SX\ Push a space and 1 then swap, leaving the space on top c Convert the space (which is an array) into a char | Bitwise or the space (32) with 1 to give "!" (33) 

CJam automatically prints the stack afterwards.

Thanks to @Optimizer for reminding me that Sc works, because otherwise SX| fails (it does a setwise or instead, giving the array consisting of a space and 1).

CJam, 5 4 lines, 162 bytes

"Hello ")))))))))))))))))))))))))))))))))))68S\cel "Wor ")))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))@SX\c| 

Same number of lines as Insomnia! (but a lot more bytes)

Try it online.

Explanation

"Hello\n" Push "Hello" and a newline ) Uncons the newline )))...))) Increment the newline into a "," 68  Push 68 S  Push a space \c Swap the 68 and space and convert 68 -> "D" el Lowercase "D" into "d" "Wor\n" Push "Wor" and a newline ) Uncons the newline )))...))) Increment the newline into an "l" @ Rotate top the elements, moving the "d" to the top SX\ Push a space and 1 then swap, leaving the space on top c Convert the space (which is an array) into a char | Bitwise or the space (32) with 1 to give "!" (33) 

CJam automatically prints the stack afterwards.

Thanks to @Optimizer for reminding me that Sc works, because otherwise SX| fails (it does a setwise or instead, giving the array consisting of a space and 1).

CJam, 5 4 lines, 162 bytes

"Hello ")))))))))))))))))))))))))))))))))))68S\cel "Wor ")))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))@SX\c| 

Same number of lines as Insomnia! (but a lot more bytes)

Try it online.

Explanation

"Hello\n" Push "Hello" and a newline ) Uncons the newline )))...))) Increment the newline into a "," 68S\ Push 68 and a space then swap, leaving 68 on top c Convert 68 into a char "D" el Lowercase "D" into "d" "Wor\n" Push "Wor" and a newline ) Uncons the newline )))...))) Increment the newline into an "l" @ Rotate top three elements, moving the "d" to the top SX\ Push a space and 1 then swap, leaving the space on top c Convert the space (which is an array) into a char | Bitwise or the space (32) with 1 to give "!" (33) 

CJam automatically prints the stack afterwards.

Thanks to @Optimizer for reminding me that Sc works, because otherwise SX| fails (it does a setwise or instead, giving the array consisting of a space and 1).

added 482 characters in body
Source Link
Sp3000
  • 62.3k
  • 13
  • 117
  • 292

CJam, 55 4 lines, 158162 bytes

"Hello ")))))))))))))))))))))))))))))))))))S68S\cel "Wor ")))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))99c )33c@SX\c| 

Try it online Same number of lines as Insomnia! (but a lot more bytes)

Try it online.

Explanation

"Hello\n"  Push "Hello" and a newline )  Uncons the newline )))...)))  Increment the newline tointo becomea "," 68 Push 68 S  Push a space \c  Swap the 68 and space and convert 68 -> "D" el Lowercase "D" into "d" "Wor\n"  Push "Wor" and a newline )  Uncons the newline )))...)))  Increment the newline tointo becomean "l" 99c@ Push 99 and turnRotate ittop intothe aelements, charmoving "c"the "d" to the top )SX\ Push Incrementa "c"space intoand "d"1 then swap, leaving the space on top 33cc Push 33 and turnConvert itthe space (which is an array) into a char |  Bitwise or the space (32) with 1 to give "!" (33)  

CJam automatically prints the stack afterwards.

Thanks to @Optimizer for reminding me that Sc works, because otherwise SX| fails (it does a setwise or instead, giving the array consisting of a space and 1).

CJam, 5 lines, 158 bytes

"Hello ")))))))))))))))))))))))))))))))))))S "Wor ")))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))99c )33c 

Try it online.

Explanation

"Hello\n" Push "Hello" and a newline ) Uncons the newline )))...))) Increment the newline to become "," S Push a space "Wor\n" Push "Wor" and a newline ) Uncons the newline )))...))) Increment the newline to become "l" 99c Push 99 and turn it into a char "c" ) Increment "c" into "d" 33c Push 33 and turn it into a char "!" 

CJam automatically prints the stack afterwards.

CJam, 5 4 lines, 162 bytes

"Hello ")))))))))))))))))))))))))))))))))))68S\cel "Wor ")))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))@SX\c| 

Same number of lines as Insomnia! (but a lot more bytes)

Try it online.

Explanation

"Hello\n"  Push "Hello" and a newline )  Uncons the newline )))...)))  Increment the newline into a "," 68 Push 68 S  Push a space \c  Swap the 68 and space and convert 68 -> "D" el Lowercase "D" into "d" "Wor\n"  Push "Wor" and a newline )  Uncons the newline )))...)))  Increment the newline into an "l" @ Rotate top the elements, moving the "d" to the top SX\ Push a space and 1 then swap, leaving the space on top c Convert the space (which is an array) into a char |  Bitwise or the space (32) with 1 to give "!" (33)  

CJam automatically prints the stack afterwards.

Thanks to @Optimizer for reminding me that Sc works, because otherwise SX| fails (it does a setwise or instead, giving the array consisting of a space and 1).

Source Link
Sp3000
  • 62.3k
  • 13
  • 117
  • 292

CJam, 5 lines, 158 bytes

"Hello ")))))))))))))))))))))))))))))))))))S "Wor ")))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))99c )33c 

Try it online.

Explanation

"Hello\n" Push "Hello" and a newline ) Uncons the newline )))...))) Increment the newline to become "," S Push a space "Wor\n" Push "Wor" and a newline ) Uncons the newline )))...))) Increment the newline to become "l" 99c Push 99 and turn it into a char "c" ) Increment "c" into "d" 33c Push 33 and turn it into a char "!" 

CJam automatically prints the stack afterwards.