advent-of-code-2021/solve.zig

20 lines
433 B
Zig
Raw Permalink Normal View History

2021-12-05 06:16:06 +00:00
const std = @import("std");
const print = std.debug.print;
pub fn main() !void {
var alloc = std.heap.GeneralPurposeAllocator(.{}){};
defer std.debug.assert(!alloc.deinit());
var gpa = &alloc.allocator;
const stdin = std.io.getStdIn().reader();
var res: u32 = 0;
var tmp: [256]u8 = undefined;
while (try stdin.readUntilDelimiterOrEof(&tmp, '\n')) |line| {
}
print("{}\n", .{res});
}