Skip to content

Instantly share code, notes, and snippets.

@vedgar
Last active November 10, 2022 03:22
Show Gist options
  • Save vedgar/f4aecaee76e97f1f3ad8b02c60a91b63 to your computer and use it in GitHub Desktop.
Save vedgar/f4aecaee76e97f1f3ad8b02c60a91b63 to your computer and use it in GitHub Desktop.
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