Skip to content

Commit 1fd7004

Browse files
authored
Update A2B.md
1 parent ae60e40 commit 1fd7004

1 file changed

Lines changed: 16 additions & 1 deletion

File tree

content/Blog/A2B.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -751,6 +751,8 @@ X=1
751751

752752
### 5-3. A + B
753753

754+
#### Solution 1 (14 lines)
755+
754756
> Not a good solution
755757
756758
```
@@ -770,6 +772,19 @@ x+=(start)y|
770772
(start)0=
771773
```
772774

775+
#### Solution 2 (8 lines)
776+
777+
```
778+
+1 = |x+
779+
+0 = |+
780+
x| = |xx
781+
| =
782+
1x = x0
783+
0x = 1
784+
x = 1
785+
+ =
786+
```
787+
773788
### 5-4. A - B
774789

775790
> Not a good solution, too
@@ -835,4 +850,4 @@ a=helloworld
835850
[1]: https://en.wikipedia.org/wiki/Parity_(mathematics)
836851
[2]: https://en.wikipedia.org/wiki/Least_common_multiple
837852
[3]: https://web.stanford.edu/class/archive/cs/cs103/cs103.1176/lectures/20/Small20.pdf
838-
[4]: https://github.com/Wizmann/a2b-lang
853+
[4]: https://github.com/Wizmann/a2b-lang

0 commit comments

Comments
 (0)