aoc/year2025/day12.rs
1//! # Christmas Tree Farm
2use crate::util::iter::*;
3use crate::util::parse::*;
4
5pub fn parse(input: &str) -> &str {
6 input
7}
8
9pub fn part1(input: &str) -> usize {
10 input
11 .iter_unsigned::<u32>()
12 .skip(6)
13 .chunk::<8>()
14 .filter(|[w, h, presents @ ..]| (w / 3) * (h / 3) >= presents.iter().sum::<u32>())
15 .count()
16}
17
18pub fn part2(_input: &str) -> &'static str {
19 "n/a"
20}