Add Python template
This commit is contained in:
parent
f62396323a
commit
1677289aee
1 changed files with 26 additions and 0 deletions
26
templates/main.py
Normal file
26
templates/main.py
Normal file
|
@ -0,0 +1,26 @@
|
|||
import os
|
||||
import sys
|
||||
|
||||
|
||||
def _debug(*args, **kwargs):
|
||||
kwargs["file"] = sys.stderr
|
||||
print(*args, **kwargs)
|
||||
|
||||
|
||||
def one(inp: str):
|
||||
return
|
||||
|
||||
|
||||
def two(inp: str):
|
||||
return
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
if len(sys.argv) < 2 or sys.argv[1] not in ["1", "2"]:
|
||||
print("Missing day argument", file=sys.stderr)
|
||||
os.exit(1)
|
||||
inp = sys.stdin.read().strip()
|
||||
if sys.argv[1] == "1":
|
||||
print(one(inp))
|
||||
else:
|
||||
print(two(inp))
|
Loading…
Add table
Add a link
Reference in a new issue