modified template
This commit is contained in:
parent
68bff21f4d
commit
44723a1ef1
|
|
@ -1,14 +1,12 @@
|
||||||
import sys
|
import sys
|
||||||
import copy
|
|
||||||
from dataclasses import dataclass, field
|
from dataclasses import dataclass, field
|
||||||
|
|
||||||
DEBUG = False
|
DEBUG = False
|
||||||
debug_padding = 40
|
debug_padding = 40
|
||||||
|
|
||||||
def debug_print(printname, *args):
|
def debug_print(printname, *args):
|
||||||
if not DEBUG:
|
if DEBUG:
|
||||||
return
|
print(f"{'DEBUG::'+printname:<{debug_padding}}", *args)
|
||||||
print(f"{'DEBUG::'+printname:<{debug_padding}}", *args)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,16 +1,18 @@
|
||||||
import sys
|
import sys
|
||||||
from dataclasses import dataclass
|
from dataclasses import dataclass, field
|
||||||
|
|
||||||
DEBUG = True
|
DEBUG = True
|
||||||
padding=24
|
debug_padding = 24
|
||||||
|
|
||||||
def debug_print(printname, *args):
|
def debug_print(printname, *args):
|
||||||
if not DEBUG:
|
if DEBUG:
|
||||||
return
|
print(f"{'DEBUG::'+printname:<{debug_padding}}", *args)
|
||||||
print(f"{'DEBUG::'+printname:<{padding}}", *args)
|
|
||||||
pass
|
|
||||||
|
|
||||||
|
|
||||||
|
print("Parsing Input:")
|
||||||
|
print("")
|
||||||
|
print("===================================\n");
|
||||||
|
|
||||||
FILENAME = "/home/icaema/Public/advent-of-code/day-XX/data/p01test.txt"
|
FILENAME = "/home/icaema/Public/advent-of-code/day-XX/data/p01test.txt"
|
||||||
f = open(FILENAME, "r")
|
f = open(FILENAME, "r")
|
||||||
|
|
||||||
|
|
@ -20,12 +22,28 @@ for line in f.readlines():
|
||||||
debug_print("input", line)
|
debug_print("input", line)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
print("")
|
||||||
|
print(" Proccessing:")
|
||||||
|
print("===================================\n");
|
||||||
# Insert Processing Code
|
# Insert Processing Code
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
print("")
|
print("")
|
||||||
print("Processed:")
|
print(" Calculate Answer:")
|
||||||
|
print("===================================\n");
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
print("")
|
print("")
|
||||||
|
print(" Answer:")
|
||||||
print("===================================\n");
|
print("===================================\n");
|
||||||
print("Answer: XXX");
|
print("Answer: XXX");
|
||||||
|
|
@ -1,16 +1,18 @@
|
||||||
import sys
|
import sys
|
||||||
from dataclasses import dataclass
|
from dataclasses import dataclass, field
|
||||||
|
|
||||||
DEBUG = True
|
DEBUG = True
|
||||||
padding=24
|
debug_padding = 24
|
||||||
|
|
||||||
def debug_print(printname, *args):
|
def debug_print(printname, *args):
|
||||||
if not DEBUG:
|
if DEBUG:
|
||||||
return
|
print(f"{'DEBUG::'+printname:<{debug_padding}}", *args)
|
||||||
print(f"{'DEBUG::'+printname:<{padding}}", *args)
|
|
||||||
pass
|
|
||||||
|
|
||||||
|
|
||||||
|
print("Parsing Input:")
|
||||||
|
print("")
|
||||||
|
print("===================================\n");
|
||||||
|
|
||||||
FILENAME = "/home/icaema/Public/advent-of-code/day-XX/data/p01test.txt"
|
FILENAME = "/home/icaema/Public/advent-of-code/day-XX/data/p01test.txt"
|
||||||
f = open(FILENAME, "r")
|
f = open(FILENAME, "r")
|
||||||
|
|
||||||
|
|
@ -20,12 +22,28 @@ for line in f.readlines():
|
||||||
debug_print("input", line)
|
debug_print("input", line)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
print("")
|
||||||
|
print(" Proccessing:")
|
||||||
|
print("===================================\n");
|
||||||
# Insert Processing Code
|
# Insert Processing Code
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
print("")
|
print("")
|
||||||
print("Processed:")
|
print(" Calculate Answer:")
|
||||||
|
print("===================================\n");
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
print("")
|
print("")
|
||||||
|
print(" Answer:")
|
||||||
print("===================================\n");
|
print("===================================\n");
|
||||||
print("Answer: XXX");
|
print("Answer: XXX");
|
||||||
Loading…
Reference in New Issue