🚧 aaaaaaaaaaaa
This commit is contained in:
parent
dc001447d6
commit
af970447ac
@ -48,12 +48,12 @@ static void PartTwo() {
|
||||
|
||||
var clone = new List<string>(lines);
|
||||
clone[i] = instruction == "jmp" ? $"nop {intval}" : $"jmp {intval}";
|
||||
|
||||
|
||||
try {
|
||||
var result = DoTheThing(clone);
|
||||
Console.WriteLine($"Found that instruction {i} fixes the loop, accumilator end up being {result}.");
|
||||
return;
|
||||
} catch (Exception e) { }
|
||||
} catch { }
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user