meta: template
This commit is contained in:
parent
16f4ed4be8
commit
b93d14ad5b
2 changed files with 32 additions and 0 deletions
13
solve.go
Normal file
13
solve.go
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
package main
|
||||||
|
|
||||||
|
import (
|
||||||
|
"bufio"
|
||||||
|
"os"
|
||||||
|
)
|
||||||
|
|
||||||
|
func main() {
|
||||||
|
s := bufio.NewScanner(os.Stdin)
|
||||||
|
for s.Scan() {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
19
solve.zig
Normal file
19
solve.zig
Normal file
|
@ -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});
|
||||||
|
}
|
Loading…
Reference in a new issue