If an answer doesn't meet the challenge specs it should be deleted, according to our criterion. The author has been notified that the answer fails to meet a spec and hasn't solved it or deleted the question. Should I flag for mod attention?
J, 4 bytes
]/.~
Example:
]/.~ 'Ah, abracadabra!'
A
h
,
aaaaa
bb
rr
c
d
!
]/.~ '\o/\o/\o/'
\\\
ooo
///
Explanation
J is an array oriented language. All data (which are termed nouns in J parlance) are understood to be arrays, and all operations consu...
S.I.L.O.S, 360 bytes
a=97
def q print z bottle v beer L Line g wall x IntNoLine h the c around
qL 99 zs of v on h g, 99 zs of v.
lbls
q Take one down and pass it c,
a+1
qx a
qL zs of v on h g.
qx a
q zs of v on h g,
qx a
qL zs of v.
a-2
if a s
qL Take one down and pass it c, 1 z of v on h g...
@ΛεγίωνΜάμμαλϠΨΠʹ CMC: given a list of strings, join them by the natural numbers. E.g., ["a", "b", "cd"] => "a0b1cd" and ["hello", "world", "how", "are", "you"] => "hello0world1how2are3you
Implement a simple integer operation scriptable calculator.
Concept
The accumulator starts at 0 and has operations performed on it. At the end of the program output the value of the accumulator.
Operations:
+ adds 1 to the accumulator
- subtracts 1 from the accumulator
* multiplies the accum...
ok, from now on, we need to start organizing our posts for better queries. If you are posting a CMC, ensure that "CMC:" is the first text in your post. If you are going to :message ping somebody, ensure you include their @name
@uoɥʇʎPʎzɐɹC That's just because most of the "encodings" we use in real life are not very sophisticated (optimized for simplicity and speed, not size). English for instance only really contains 1.2 bits of information per letter while ASCII encodes it with 7 bits
Implement a simple integer operation scriptable calculator.
Concept
The accumulator starts at 0 and has operations performed on it. At the end of the program output the value of the accumulator.
Operations:
+ adds 1 to the accumulator
- subtracts 1 from the accumulator
* multiplies the accum...
Disclaimer
While I know there is this particular related question, my question uses two garage doors, a randomizing component, and I'm also basing this on real life events, seeing my son accidentally lowered one of said garage doors whilst I was walking out of the garage last week... Nothing lik...