14 lines
283 B
Python
14 lines
283 B
Python
|
#!/usr/bin/python2
|
||
|
# -*- coding: utf-8 -*-
|
||
|
|
||
|
"""
|
||
|
Rozwiązanie zadania 202
|
||
|
"""
|
||
|
|
||
|
def get_number_of_final_states(automaton):
|
||
|
counter = 0
|
||
|
for state in range(automaton.get_number_of_states()):
|
||
|
if automaton.is_final_state(state):
|
||
|
counter += 1
|
||
|
return counter
|