|
|
@ -13,8 +13,6 @@ pub fn main() !void {
|
|
|
|
var total2: u64 = 0;
|
|
|
|
var total2: u64 = 0;
|
|
|
|
|
|
|
|
|
|
|
|
while (it.next()) |line| {
|
|
|
|
while (it.next()) |line| {
|
|
|
|
std.debug.print("{s}\n", .{line});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!std.ascii.isAlphanumeric(line[0])) {
|
|
|
|
if (!std.ascii.isAlphanumeric(line[0])) {
|
|
|
|
continue;
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -84,8 +82,6 @@ pub fn main() !void {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
const power: u64 = min_red * min_green * min_blue;
|
|
|
|
const power: u64 = min_red * min_green * min_blue;
|
|
|
|
std.debug.print("end of game: {d} {d} {d}\n", .{ min_red, min_green, min_blue });
|
|
|
|
|
|
|
|
std.debug.print("power: {d} {d}\n", .{ game, power });
|
|
|
|
|
|
|
|
total2 += power;
|
|
|
|
total2 += power;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|