diff --git a/solve.go b/solve.go new file mode 100644 index 0000000..b03b80d --- /dev/null +++ b/solve.go @@ -0,0 +1,13 @@ +package main + +import ( + "bufio" + "os" +) + +func main() { + s := bufio.NewScanner(os.Stdin) + for s.Scan() { + + } +} diff --git a/solve.zig b/solve.zig new file mode 100644 index 0000000..b49f760 --- /dev/null +++ b/solve.zig @@ -0,0 +1,19 @@ +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}); +}