From fb4c354aa98bea651686909840c6876b366188fc Mon Sep 17 00:00:00 2001 From: Wesley Moore Date: Sat, 7 Dec 2019 14:35:00 +1100 Subject: [PATCH] Day 5 part 1 --- 2019/src/bin/day5.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 2019/src/bin/day5.rs 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(()) +}