File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
// part 1 --> floor (%;mod) (1000;137)
2
2
.aoc.2015.day14.part1: {[x ;y ]
3
- : y[`v ]*(c*y`ft )+y[`ft ]&x-tt *c : floor x%tt : sum y`ft`rt ;
3
+ : max y[`v ]*(c*y`ft )+y[`ft ]&x-tt *c : floor x%tt : sum y`ft`rt ;
4
4
};
5
5
6
6
// paret 2
7
7
.aoc.2015.day14.part2: {[x ;y ]
8
- : sum u=' max each u : flip sums each x#' ((#'/ )y`ft`v ),' y[`rt ]#' 0 ;
8
+ : max sum u=' max each u : flip sums each x#' ((#'/ )y`ft`v ),' y[`rt ]#' 0 ;
9
9
};
10
10
11
- show "AOC 2015 D14/01: " , .Q.s1 max .aoc.2015.day14.part1 [2503 ;`r`v`ft`rt ! ("S I I I" ;" " ) 0: hsym ` $ "input.txt" ];
12
- show "AOC 2015 D14/02: " , .Q.s1 max .aoc.2015.day14.part2 [2503 ;`r`v`ft`rt ! ("S I I I" ;" " ) 0: hsym ` $ "input.txt" ];
11
+ show "AOC 2015 D14/01: " , .Q.s1 .aoc.2015.day14.part1 [2503 ;`r`v`ft`rt ! ("S I I I" ;" " ) 0: hsym ` $ "input.txt" ];
12
+ show "AOC 2015 D14/02: " , .Q.s1 .aoc.2015.day14.part2 [2503 ;`r`v`ft`rt ! ("S I I I" ;" " ) 0: hsym ` $ "input.txt" ];
You can’t perform that action at this time.
0 commit comments