Browse Source

added gcd

Mike Schwörer 1 year ago
parent
commit
3f8b9d2118
Signed by: Mike Schwörer <mailport@mikescher.de> GPG Key ID: D3C7172E0A70F8CF
4 changed files with 43 additions and 9 deletions
  1. 1
    0
      .gitignore
  2. 14
    0
      gcd.b93
  3. 19
    0
      gcd_multi.b93
  4. 9
    9
      sudoku.b93

+ 1
- 0
.gitignore View File

@@ -0,0 +1 @@
1
+sudoku_puzzles.txt

+ 14
- 0
gcd.b93 View File

@@ -0,0 +1,14 @@
1
+v
2
+ #
3
+
4
+      A      B
5
+                               v\g11%p1<
6
+>     9     43*                >:!#v_:1^
7
+                                   >$           .@
8
+
9
+
10
+
11
+#$watch[1,1]:int = tmp
12
+
13
+
14
+[a,b]   -->   gcd(a,b)

+ 19
- 0
gcd_multi.b93 View File

@@ -0,0 +1,19 @@
1
+v
2
+ ##                                                                         
3
+                                                  
4
+      A      B      C      D      CNT             
5
+                                                  
6
+>     6     62*     8     64*      4              1-:2v2:       <
7
+                                                      1v\g11%p1<-
8
+                                                      p>:!#v_:1^1
9
+                                                      >|   >$21g^
10
+                                                   
11
+
12
+                                                       >                .@
13
+
14
+
15
+#$watch[1,1]:int = tmp1
16
+#$watch[2,1]:int = tmp2
17
+
18
+
19
+[a,b,c,...] [len(a,b,c,...)]     -->     gcd(a,b,c,...)

+ 9
- 9
sudoku.b93 View File

@@ -1,13 +1,13 @@
1 1
 v XX    ###########  ###########  #############################        #############################
2
- C    C #36  2  89#  #         #  #                           #        #                           #
3
- PPPPP  #   361   #  #         #  #                           #        #                           #
4
- XXX    #         #  #         #  #                           #        #                           #
5
- LLLLLL #8 3   6 2#  #         #  #                           #        #                           #
6
- PMMMM  #4  6 3  7#  #         #  #         ##########        #        #                           #
7
- MM MMM #6 7   1 8#  #         #  #     ##################    #        #                           #
8
- XXX XX #         #  #         #  #     ##################    #        #                           #
9
-        #   418   #  #         #  #   ####################### #        #                           #
10
-        #97  3  14#  #         #  #   ####################### #        #          #######          #
2
+ C    C #     3 17#  #         #  #                           #        #                           #
3
+ PPPPP  # 15  9  8#  #         #  #                           #        #                           #
4
+ XXX    # 6       #  #         #  #                           #        #                           #
5
+ LLLLLL #1    7   #  #         #  #                           #        #                           #
6
+ PMMMM  #  9   2  #  #         #  #         ##########        #        #                           #
7
+ MM MMM #   5    4#  #         #  #     ##################    #        #                           #
8
+ XXX XX #       2 #  #         #  #     ##################    #        #                           #
9
+        #5  6  34 #  #         #  #   ####################### #        #                           #
10
+        #34 2     #  #         #  #   ####################### #        #          #######          #
11 11
         ###########  ###########  # ####################      #        #       ############        #
12 12
                                   # ####################      #        #      ###############      #
13 13
 >           492*+11p9:*:9*61p>1-v # ################          #        #     #################     #

Loading…
Cancel
Save