[2016][rust][23.1]

profile
Alpha Chen 8 years ago
parent ce6c9cd335
commit 8438d1c6ba

@ -4,7 +4,7 @@ use errors::*;
pub fn solve(input: &str) -> Result<String> {
let instructions: Instructions = input.parse()?;
let mut registers = Registers::new();
registers[Register::A] = 7;
registers[Register::A] = 12;
let assembunny = Assembunny{registers: registers, instructions: instructions};
let registers = assembunny.last().ok_or("")?;

Loading…
Cancel
Save