Skip to content

Instantly share code, notes, and snippets.

@engelsdamien
Last active June 12, 2019 09:50
Show Gist options
  • Save engelsdamien/6fdd222a59b0bd1b90e78f5f3d708426 to your computer and use it in GitHub Desktop.
Save engelsdamien/6fdd222a59b0bd1b90e78f5f3d708426 to your computer and use it in GitHub Desktop.
for(c=Array(32).fill(2);l=readline();c[e]={S:3,A:c[e]&c[g],O:c[e]|c[g]}[d]|0)[[d],e,g]=l.split` `
writeline(c.reduce((p,f)=>'0.?1'[f]+p,''))
@engelsdamien
Copy link
Author

Nice one :D Down to 156 chars

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment