package Ġcom . s 1 3 g . a oc . a oc 2 0 1 9 Ċ Ċ import Ġcom . s 1 3 g . a oc . Result Ċ import Ġcom . s 1 3 g . a oc . Solver Ċ Ċ /** Ġhttps :// ad vent of code . com / 2 0 1 9 / day / 5 Ġ*/ Ċ class ĠDay 5 Ġ: ĠSolver Ġ{ ĊĠ Ġoverride Ġfun Ġsolve ( lines : ĠList < String >): ĠResult Ġ{ ĊĠĠĠ Ġval Ġregs Ġ= Ġlines [ 0 ]. split ("," ). map Ġ{ Ġit . toInt () Ġ} ĊĠĠĠ Ġval Ġsolution A Ġ= Ġcreate Vm ( regs . to Mutable List (), Ġarray ListOf ( 1 )). run () ĊĠĠĠ Ġval Ġsolution B Ġ= Ġcreate Vm ( regs . to Mutable List (), Ġarray ListOf ( 5 )). run () ĊĠĠĠ Ġreturn ĠResult ("$ solution A ", Ġ"$ solution B ") ĊĠ Ġ} Ċ } ĊĊ