Created
December 2, 2013 00:31
-
-
Save mntone/7742934 to your computer and use it in GitHub Desktop.
xor を審議を確かめるために書いたやつ。2NAND, 2NOR, INV で構成
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for( my $a = 0; $a <= 1; ++$a ) | |
{ | |
for( my $b = 0; $b <= 1; ++$b ) | |
{ | |
print( $a, ' ', $b, ' ', ( !( ( !!( $a & $b ) ) | ( !( $a | $b ) ) ) ) == 1 ? 1 : 0, "\n" ); | |
} | |
} | |
__END__ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment