--- /dev/null
+use super::intcode;\r
+\r
+struct RepairDroid {\r
+}\r
+\r
+impl intcode::IO for RepairDroid {\r
+ // May block.\r
+ fn read(&mut self) -> i64 {\r
+ 1\r
+ }\r
+\r
+ // Send to the output channel.\r
+ fn write(&mut self, value: i64) {\r
+ }\r
+}\r
+\r
+pub fn shorted_path_to_oxygen(code: &[i64]) -> i32 {\r
+ 0\r
+}\r
+\r
+\r
+#[cfg(test)]\r
+mod tests {\r
+ use super::*;\r
+\r
+ #[test]\r
+ fn part1_sample_1() {\r
+\r
+ }\r
+}
\ No newline at end of file
mod day12;
mod day13;
mod day14;
+mod day15;
fn day01() -> String {
let masses = common::read_list_of_numbers("data/day01.input", "\n");
format!("part1: {}, part2: {}", ore_per_fuel, day14::fuel_produced(&reactions, 1_000_000_000_000, ore_per_fuel))
}
+fn day15() -> String {
+ //let code = common::read_list_of_numbers("data/day15.input", ",");
+ format!("part1: {}, part2: {}", "", "")
+}
+
fn format_micros(t: u128) -> String {
if t < 10_000 {
format!("{} μs", t)
day12,
day13,
day14,
+ day15,
);
let args: Vec<String> = env::args().skip(1).collect();