Skip to content

Commit

Permalink
adjust: config.py
Browse files Browse the repository at this point in the history
#20220608001
  • Loading branch information
YuCheng21 committed Jun 8, 2022
1 parent 36ccb4e commit 357c3c0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion assistant_tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
operation_system = platform.system()

def allow_ext(file):
pattern = r'\.(c|cpp)$'
pattern = r'\.(c|cpp|CPP|C)$'
regex = re.search(pattern, file)
if regex is None:
logging.debug(f'file extension not allowed')
Expand Down
5 changes: 5 additions & 0 deletions config.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,8 @@
'stdin': [],
'output_pattern': [[r'(2)+', r'(6)+', r'(-4)+', r'(5)+', r'(4)+', r'(0)+', r'(-1)+', r'(-5)+', r'(3)+', r'(-2)+']],
}
week_args['week14'] = {
'Title': '結構PT距離',
'stdin': ["2", "2", "3", "3", "5", "5", "1", "1", "4", "4"],
'output_pattern': [[r'((5)+|(7)+)']],
}

0 comments on commit 357c3c0

Please sign in to comment.