zjfz-2019-s402281/automata/Task202.py
2020-01-25 08:50:29 +01:00

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