43 lines
893 B
Zig
43 lines
893 B
Zig
|
const std = @import("std");
|
||
|
const util = @import("util.zig");
|
||
|
const mem = std.mem;
|
||
|
|
||
|
pub fn main() !void {
|
||
|
const input = @embedFile("data/dayXX.txt");
|
||
|
const sln = try solve(util.gpa, input);
|
||
|
std.debug.print("{d}\n", .{sln.a});
|
||
|
std.debug.print("{d}\n", .{sln.b});
|
||
|
}
|
||
|
|
||
|
const Solution = struct {
|
||
|
a: usize,
|
||
|
b: usize,
|
||
|
};
|
||
|
|
||
|
fn solve(alloc: mem.Allocator, input: []const u8) !Solution {
|
||
|
_ = alloc;
|
||
|
|
||
|
var it = util.splitLines(input);
|
||
|
while (it.next()) |line| {
|
||
|
if (line.len == 0) continue;
|
||
|
}
|
||
|
|
||
|
return .{ .a = 0, .b = 0 };
|
||
|
}
|
||
|
|
||
|
test "silver" {
|
||
|
const input =
|
||
|
\\
|
||
|
;
|
||
|
const sln = try solve(std.testing.allocator, input);
|
||
|
try std.testing.expectEqual(@as(usize, 0), sln.a);
|
||
|
}
|
||
|
|
||
|
test "gold" {
|
||
|
const input =
|
||
|
\\
|
||
|
;
|
||
|
const sln = try solve(std.testing.allocator, input);
|
||
|
try std.testing.expectEqual(@as(usize, 0), sln.b);
|
||
|
}
|