-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
318 additions
and
1 deletion.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
. > . > . . . | ||
^ 1 . 1 * S . | ||
A # . * . . . | ||
. . v . > . . | ||
. . . . 2 @ 3 | ||
. 1 + . . 3 . | ||
. . . . . . . | ||
. 1 @ 6 . . . | ||
. . 3 . . . . |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
. 1 . . . | ||
A + . . . | ||
. . . . . | ||
A % . . A | ||
. . > . * | ||
-1 # S . S | ||
. . . . . |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
. . . . 0 . | ||
. A > . = S | ||
1 + . . . . | ||
. . . . . . | ||
A % . . A . | ||
. . > . / . | ||
-1 = S . S . |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
// A, B が異符号の場合 | ||
// 最大 10 tick 必要 | ||
. B . 1 . | ||
A * . + . | ||
. . v . . | ||
. . . % . | ||
. . . . . | ||
. . -1 = . | ||
. . < . . // ここから A の符号を求める、左の分岐は A が正の場合 | ||
. v A - . | ||
. . . . . | ||
. v A % . | ||
. . . . . | ||
. v -1 = . | ||
. . . . . // ここから下が実行されるのは A が負 | ||
1 + 1 + . | ||
. . . . . | ||
A + B + S | ||
. S . . . | ||
|
||
// A, B が正 | ||
// 11 tick 目に timewarp させるため最初は遅らせる | ||
A > . > . > . . B > . > . > . | ||
. . . . . . v . . . . . . . v | ||
. . . < . < . . . . . < . < . . | ||
. . v 1 . 0 . B . . v 1 . 0 . A | ||
. . . - . = . + . . . - . = . + | ||
. . . . v . . S . . . . v . . S | ||
. . . < . . . . . . . < . . . . | ||
. 0 @ 3 . . . . . 0 @ 3 . . . . | ||
. . 3 . . . . . . . 3 . . . . . | ||
|
||
// A, B が負 | ||
A > . > . > . . B > . > . > . | ||
. . . . . . v . . . . . . . v | ||
. . . < . < . . . . . < . < . . | ||
. . v 1 . 0 . A . . v 1 . 0 . B | ||
. . . + . = . + . . . + . = . + | ||
. . . . v . . S . . . . v . . S | ||
. . . < . . . . . . . < . . . . | ||
. 0 @ 3 . . . . . 0 @ 3 . . . . | ||
. . 3 . . . . . . . 3 . . . . . |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// continue: 6 tick | ||
// end: 6 tick | ||
. . . < . < B > . > . > . . | ||
. 0 = . . A > . % . . . v . | ||
. . . . . v . . . v . . . . | ||
. . v . < . . . < . . . v . | ||
. . . + . . . v . . . . . . | ||
. B . . . . . . > . . . v . | ||
A * . / S . . . 3 @ 6 . . . | ||
. . . . . . . . . 6 . 7 @ 6 | ||
. . . . . . . . . . . . 6 . |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
. . . . 1 . . . . 2 . | ||
. 2 > . + . > . A = . | ||
A % . . . . . v . . / | ||
. . . A = . . . . . S | ||
. v . . . . 6 @ 3 . . | ||
. . . A / S . 4 . . . | ||
0 = . . . . . . . . . | ||
. S . . . . . . . . . |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
. . . . . . . 10 . . . . | ||
. > . > . > . * . > . . | ||
^ . < A . . . . . . v . | ||
. v . . . . . . 10 . . . | ||
^ . > . > . > . % . + . | ||
. . 0 = . v 10 . . . . . | ||
^ . . . . . / . . 10 @ -1 | ||
0 > . + . . . > . . 10 . | ||
. . < . . . . . v . . . | ||
0 * A = . . . . . . . . | ||
. . . . / . . . v . . . | ||
. v . . S . . . . > . . | ||
. S . . . . . . . 7 @ 10 | ||
. . . . . . . . . . 10 . |
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
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