diff --git a/2019/src/bin/day5.rs b/2019/src/bin/day5.rs new file mode 100644 index 0000000..d3f4b9e --- /dev/null +++ b/2019/src/bin/day5.rs @@ -0,0 +1,12 @@ +use advent_of_code::{computer, input}; +use std::{fs, io}; + +fn main() -> io::Result<()> { + let input = fs::read_to_string("input/day5.txt")?; + let mut data = input::read_separated_line(',', &input)?; + let mut program = computer::Memory::new(&mut data); + + program.run(None, None); + + Ok(()) +}