advent-of-code/2021/zig/6.zig

15 lines
384 B
Zig
Raw Permalink Normal View History

2021-12-06 11:39:34 -06:00
const std = @import("std");
2021-12-07 10:06:34 -06:00
const common = @import("./common.zig");
2021-12-06 11:39:34 -06:00
// TODO: solution to day 6
pub fn main() !void {
2021-12-07 10:06:34 -06:00
var fileContents = try common.readFileContents("/home/daniel/.home/.cache/aoc2021/6.input");
2021-12-06 11:39:34 -06:00
const stdout = std.io.getStdOut().writer();
2021-12-07 10:06:34 -06:00
try stdout.print("{s}", .{fileContents});
}
/// Calculate lanternFish value
fn lanternFish() i32 {
return 48;
2021-12-06 11:39:34 -06:00
}