diff --git a/u8/program.py b/u8/program.py index 9d1147a..3e81b25 100644 --- a/u8/program.py +++ b/u8/program.py @@ -1,22 +1,8 @@ import sys - -sys.stdout.reconfigure(encoding="utf-8", newline="\n") -sys.stdin.reconfigure(encoding="utf-8") +sys.setrecursionlimit(1000000) print("Expert zo zoo to vie.") -data = sys.stdin.read() -lines = data.split("\n") -if lines and lines[-1] == "": - lines.pop() - -if "" not in lines: - print("Chybna databaza") - sys.exit() - -sep = lines.index("") -base = lines[:sep] -choices = lines[sep + 1:] print("Pocet otazok: 0") print("Pocet odpovedi: 1")