Last active
November 10, 2022 03:22
-
-
Save vedgar/f4aecaee76e97f1f3ad8b02c60a91b63 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
def D23(): | |
T = TuringovStroj.iz_tablice('''a b c _ C B A | |
0 A+1 ! ! . ! ! ! | |
1 +2 +5 ! ! ! + ! | |
2 + B+3 ! ! ! + ! | |
3 ! + C+4 ! + ! ! | |
4 - - - - - - +0 | |
5 ! ! +6 ! + ! ! | |
6 ! ! ! . ! ! !''') | |
for n in range(13): | |
for w in product('abc', repeat=n): | |
if T.prihvaća(w): print(''.join(w)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment