Day 5 part 1

This commit is contained in:
Wesley Moore 2019-12-07 14:35:00 +11:00
parent c32aac3153
commit fb4c354aa9
No known key found for this signature in database
GPG key ID: BF67766C0BC2D0EE

12
2019/src/bin/day5.rs Normal file
View file

@ -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(())
}