1
Fork 0
mirror of https://github.com/thegeneralist01/aoc synced 2026-03-07 10:59:54 +01:00
This commit is contained in:
TheGeneralist 2024-12-08 14:13:57 +01:00
parent 1d9f361587
commit 8b6cd0c4ae
Signed by: thegeneralist01
SSH key fingerprint: SHA256:pp9qddbCNmVNoSjevdvQvM5z0DHN7LTa8qBMbcMq/R4
3 changed files with 1 additions and 89 deletions

View file

@ -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,

View file

@ -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();