This commit is contained in:
Joshua Seigler 2020-12-05 01:03:09 -05:00
parent b049e03329
commit e353642348

2
day05.js Normal file
View file

@ -0,0 +1,2 @@
let d=document.body.textContent.replaceAll(/[FL]/g,0).replaceAll(/[BR]/g,1).trim().split`
`.map(c=>parseInt(c.slice(0,7),2)*8+parseInt(c.slice(7),2)).sort((a,b)=>b-a);[d[0],d.find((s,i,S)=>s-S[i+1]==2)-1]