From aed3c9a5476a569ff3bd4e99ec3450dfebfd9849 Mon Sep 17 00:00:00 2001 From: Anthony Wang Date: Fri, 14 Oct 2022 12:41:42 -0400 Subject: Implement NAND --- flipper.py | 2 -- nand.f | 4 ++++ 2 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 nand.f diff --git a/flipper.py b/flipper.py index f8e5b14..9d06546 100755 --- a/flipper.py +++ b/flipper.py @@ -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]) diff --git a/nand.f b/nand.f new file mode 100644 index 0000000..001e629 --- /dev/null +++ b/nand.f @@ -0,0 +1,4 @@ +0 0 +0 0 2 +0 2 1 3 +0 3 -- cgit v1.2.3-70-g09d2