mirror of
https://github.com/thegeneralist01/aoc
synced 2026-03-07 10:59:54 +01:00
day 6
This commit is contained in:
parent
1d9f361587
commit
8b6cd0c4ae
3 changed files with 1 additions and 89 deletions
|
|
@ -1,11 +1,6 @@
|
|||
const std = @import("std");
|
||||
const input = @embedFile("input");
|
||||
|
||||
const Coord = struct {
|
||||
x: i32,
|
||||
y: i32,
|
||||
};
|
||||
|
||||
const Direction = struct {
|
||||
x: i64,
|
||||
y: i64,
|
||||
|
|
|
|||
|
|
@ -1,11 +1,6 @@
|
|||
const std = @import("std");
|
||||
const input = @embedFile("input");
|
||||
|
||||
const Coord = struct {
|
||||
x: i32,
|
||||
y: i32,
|
||||
};
|
||||
|
||||
const Direction = struct {
|
||||
x: i64,
|
||||
y: i64,
|
||||
|
|
@ -56,7 +51,7 @@ pub fn main() !void {
|
|||
const ally = gpa.allocator();
|
||||
defer _ = gpa.deinit();
|
||||
|
||||
var lines = std.mem.tokenize(u8, input, "\r\n");
|
||||
var lines = std.mem.tokenize(u8, input, "\n");
|
||||
|
||||
var grid = std.ArrayList([]const u8).init(ally);
|
||||
defer grid.deinit();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue