Added day 15

This commit is contained in:
2024-12-15 20:39:38 +01:00
parent 8c59c074f4
commit a902e6fc7f
6 changed files with 438 additions and 19 deletions
+1 -1
View File
@@ -38,7 +38,7 @@ pub fn main() !void {
}
}
print("Total: {d}\n", .{tl_quadrant * tr_quadrant * bl_quadrant * br_quadrant});
try std.testing.expectEqual(218965032, tl_quadrant * tr_quadrant * bl_quadrant * br_quadrant);
}
fn posFinal(x0: Int, y0: Int, vX: Int, vY: Int, mapW: Int, mapH: Int, dt: Int) [2]Int {