From 2b308c64b94a14592f928a7d2511fc74c8846eb3 Mon Sep 17 00:00:00 2001 From: sterni Date: Wed, 4 Jan 2023 13:29:32 +0100 Subject: feat(sterni/aoc/2022): day16 part 1 k solution Change-Id: I4d141e0d911157ae17f12066b859297836d4858b Reviewed-on: https://cl.tvl.fyi/c/depot/+/7897 Autosubmit: sterni Tested-by: BuildkiteCI Reviewed-by: sterni --- users/sterni/exercises/aoc/2022/16/16.k | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 users/sterni/exercises/aoc/2022/16/16.k (limited to 'users') diff --git a/users/sterni/exercises/aoc/2022/16/16.k b/users/sterni/exercises/aoc/2022/16/16.k new file mode 100644 index 000000000000..40d5ace60e84 --- /dev/null +++ b/users/sterni/exercises/aoc/2022/16/16.k @@ -0,0 +1,21 @@ +/ parsing +(f;r;t):+{x[1 4],,9_x^'","}'" "\' 0:"input" +(f;t):`s$''(f;t) +r:f!{`I$x[&(x<58)&471;o[n-1;rt];rt]} + +*tf'p[29;,,`AA] -- cgit 1.4.1