diff --git a/u8/program.py b/u8/program.py index 8ad37d1..0f8f7ea 100644 --- a/u8/program.py +++ b/u8/program.py @@ -1,11 +1,13 @@ import sys sys.setrecursionlimit(1000000) +sys.stdout.reconfigure(encoding="utf-8", newline="\n") print("Expert zo zoo to vie.") raw = sys.stdin.read() rows = raw.split("\n") if rows[-1] == "": - rows = rows[:-1] + rows.pop() +rows = [r.rstrip("\r") for r in rows] pos = 0 question_count = 0