Implement NAND

This commit is contained in:
Anthony Wang 2022-10-14 12:41:42 -04:00
parent f0a38e712f
commit aed3c9a547
Signed by: a
GPG Key ID: 42A5B952E6DD8D38
2 changed files with 4 additions and 2 deletions

View File

@ -14,8 +14,6 @@ def flip(x, y):
with open(argv[1]) as f:
for line in f.readlines():
l = list(map(int, line.split()))
if len(l) < 2:
continue
x = l[0]
for i in range(1, len(l)):
x = flip(x, l[i])

4
nand.f Normal file
View File

@ -0,0 +1,4 @@
0 0
0 0 2
0 2 1 3
0 3