mirror of
https://github.com/wezm/advent-of-code.git
synced 2024-12-18 18:29:55 +00:00
Day 5 part 1
This commit is contained in:
parent
c32aac3153
commit
fb4c354aa9
1 changed files with 12 additions and 0 deletions
12
2019/src/bin/day5.rs
Normal file
12
2019/src/bin/day5.rs
Normal 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(())
|
||||||
|
}
|
Loading…
Reference in a new issue