Explorar el Código

Day 16 line width

Taddeus Kroes hace 7 años
padre
commit
264b82a882
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      16_instructions.py

+ 1 - 1
16_instructions.py

@@ -36,7 +36,7 @@ for effect in effects.split('\n\n'):
     reg = tuple(map(int, before[9:-1].split(', ')))
     opcode, a, b, out = map(int, inst.split())
     expect = tuple(map(int, after[9:-1].split(', ')))
-    mnems = set(mnem for mnem, exe in isa.items() if run(exe, a, b, reg) == expect)
+    mnems = set(m for m, exe in isa.items() if run(exe, a, b, reg) == expect)
     opcodes[opcode] &= mnems
     three += int(len(mnems) >= 3)