Skip to content

Instantly share code, notes, and snippets.

View geppoz-it's full-sized avatar

geppoz geppoz-it

  • Bari - Italy
View GitHub Profile
@geppoz-it
geppoz-it / gist:2683d87d89284c57cb8dba25436c78da
Created August 25, 2018 18:32
Hitori solver - bug validator
/**
* Auto-generated code below aims at helping you parse
* the standard input according to the problem statement.
**/
var n = parseInt(readline());
var map=[];
for (var i = 0; i < n; i++) {
map[i]=readline().split("");
printErr("in:"+map[i]);
@geppoz-it
geppoz-it / gist:c46798a332e90794c4b93bb2b0689c58
Last active November 20, 2016 16:02
sistemi di equazioni booleane di xor di and
Proprietà XOR:
a x a.b = a.B
a x A.b = A.B x 1
a.b x a.B = a
a.B x A.b = a x b
a.b x a.B.c = a x a.B.C
a.b.c x a.B.C = a.b x a.C
Proprietà distributiva AND su XOR: