Professional Documents
Culture Documents
Main 25
Main 25
import glob
from problem import Problem
if __name__ == '__main__':
# List all classes in this directory and
# import all that are derived from Problem
for module in os.listdir('.'):
if module[-3:] == '.py':
__import__(module[:-3], locals(), globals())
statement = str(p)
solution = p.solve()
statements.append(statement)
solutions.append(solution)
print('')
print('Rezolvari:')
for solution in solutions:
print(solution)
print('')