Let's see how far I get this year.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 달 전
11 달 전
11 달 전
123456789101112131415161718
  1. class Helper:
  2. def __init__(self, debug=True):
  3. self.DEBUG = debug
  4. def debug(self, message, *args, **kwargs):
  5. if self.DEBUG:
  6. print(message, *args, **kwargs)
  7. @staticmethod
  8. def load_input(day):
  9. try:
  10. day = str(day) if day >= 10 else f"0{day}"
  11. except (ValueError, TypeError):
  12. pass
  13. filename = f"day{day}.input"
  14. with open(filename, "r") as file:
  15. input_list = [line.strip() for line in file.readlines()]
  16. return input_list