diff options
Diffstat (limited to 'init.sh')
| -rwxr-xr-x | init.sh | 20 |
1 files changed, 16 insertions, 4 deletions
| @@ -18,11 +18,23 @@ echo \ | |||
| 18 | 'const std = @import("std"); | 18 | 'const std = @import("std"); |
| 19 | const print = std.debug.print; | 19 | const print = std.debug.print; |
| 20 | const assert = std.debug.assert; | 20 | const assert = std.debug.assert; |
| 21 | const ArrayList = std.ArrayList; | ||
| 21 | const mem = std.mem; | 22 | const mem = std.mem; |
| 22 | const input = @embedFile("./input.txt"); | 23 | |
| 24 | const fin = mem.trim(u8, @embedFile("./input.txt"), &std.ascii.whitespace); | ||
| 25 | var gpa = std.heap.GeneralPurposeAllocator(.{}){}; | ||
| 26 | const allocator = gpa.allocator(); | ||
| 27 | |||
| 28 | pub fn part1() void { | ||
| 29 | |||
| 30 | } | ||
| 31 | |||
| 32 | pub fn part2() void { | ||
| 33 | |||
| 34 | } | ||
| 23 | 35 | ||
| 24 | pub fn main() !void { | 36 | pub fn main() !void { |
| 25 | var gpa = std.heap.GeneralPurposeAllocator(.{}){}; | 37 | |
| 26 | defer _ = gpa.deinit(); | 38 | part1(); |
| 27 | var alloc = gpa.allocator(); | 39 | part2(); |
| 28 | }' >$DIR/solution.zig | 40 | }' >$DIR/solution.zig |
