Problem 60591. ICFP2024 001: Lambdaman 6
Solution Stats
Problem Comments
-
1 Comment
Had a small epiphany on processing based on one of the write-ups. For Lamda 6, needing >199 Rs.
The script to solve was:
(let ((triple (lambda (x) (concat x x x))))
(concat "solve lambdaman6 "
(triple (triple (triple "RRRRRRRR")))))
which becomes ICFP
B$ L! B. S3/,6%},!-"$!-!.[} B$ v! B$ v! B$ v! SLLLLLLLL L! B. v! B. v! v!
The 'solve Lambdaman6 ' is 'S3/,6%},!-"$!-!.[}'
The leftmost B$ L! means define function L!, aka triple() comes from L! B. v! B. v! v! thus L!=triple(x)=[v! v! v!], triple repeat
the second part of the first concat is
B$ v! B$ v! B$ v! SLLLLLLLL The usage B$ v! is L! thus
triple(triple(triple(SLLLLLLLL) )) thus where L is R we get
8Rs *3*3*3=27*8 Rs=216 Rs.
There are multiple ways to come to the same function substitution and variable load.
Solution Comments
Show commentsProblem Recent Solvers7
Suggested Problems
-
How to find the position of an element in a vector without using the find function
2748 Solvers
-
Least common multiple of many numbers
242 Solvers
-
Back to basics 9 - Indexed References
446 Solvers
-
Sum of diagonal of a square matrix
1589 Solvers
-
Without the French accent please!
218 Solvers
More from this Author308
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!