23 lines
433 B
Python
23 lines
433 B
Python
#!/usr/bin/python3
|
|
|
|
import sys
|
|
|
|
|
|
|
|
def is_correct(automat:list, to_check:str) -> bool:
|
|
currect_state = automat[-1]
|
|
states = automat[:-1]
|
|
print(states)
|
|
return True
|
|
|
|
if __name__ == '__main__':
|
|
automat = []
|
|
with open(sys.argv[0],'r') as f:
|
|
automat = f.readlines()
|
|
|
|
for line in sys.stdin:
|
|
if is_correct(automat,line):
|
|
print('Tak')
|
|
else:
|
|
print('Nie')
|