#cQuents, cracked by Mayube
cQuents, cracked by Mayube
#|1,1:A
This should be fairly easy, but you never know.
The "problem" was that without C
in your code, you got an error.
Mayube's solution:
#|1,1:A+BC
Each item in the sequence is the first input plus the second times the third (aka 1)
My solutions:
#1,1:A+B,C
The sequence cycles between the first input plus the second input, and the third input (1). The first item in the second is A+B
.
#1,1:A+B+C-C
Similar to Mayube's solution - instead of multiplying B*C
, just adds C
and then subtracts it.
###Explanation
Explanation
#|1,1 Append 1 and 1 to the end of the user's input
: Set mode to : (sequence 1: if given n, output nth term in sequence; if given no n, output whole sequence)
A Each item in the sequence equals the first input
Currently, this program outputs 1
, since with no user input, the first input is the first 1
in the default input (#
).