'hm'
This commit is contained in:
parent
d0fabf2933
commit
69fa21a135
10
TaskB01/run
10
TaskB01/run
@ -45,8 +45,8 @@ class automata:
|
||||
def check_if_accepted(self):
|
||||
return not set(self.state).isdisjoint(self.accepting_states)
|
||||
|
||||
def get_node_transition(self, query):
|
||||
for i in self.storage:
|
||||
def get_node_transition(self, q, i):
|
||||
self.storage[q]
|
||||
if i[0] == query:
|
||||
return i[1]
|
||||
return []
|
||||
@ -59,7 +59,7 @@ for line in sys.stdin:
|
||||
|
||||
print(auto)
|
||||
|
||||
f = open(sys.argv[1], 'r')
|
||||
# f = open(sys.argv[1], 'r')
|
||||
|
||||
for line in f:
|
||||
print(auto.test_string(line))
|
||||
# for line in f:
|
||||
# print(auto.test_string(line))
|
||||
|
Loading…
Reference in New Issue
Block a user