add EGMO 2025
Browse files
EGMO/md/en-2025-solutions.md
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
EGMO/raw/en-2025-solutions.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4bad0f81f7e66b64b522369f24d94b8bf1c133465ec111168119ec3b6acf95ee
|
| 3 |
+
size 1138662
|
EGMO/segment_script/segment.py
CHANGED
|
@@ -56,8 +56,8 @@ def analyze(text: str) -> Tuple[List, int]:
|
|
| 56 |
Returns:
|
| 57 |
Tuple[List, int]: A tuple containing the tags and problem number.
|
| 58 |
"""
|
| 59 |
-
problem_pattern = re.compile(r'(?:(?:\n|# )(?:Problem|Problems)\s+(\d+)\.?|\n(\d+)\.)(?:\s*\(.+?\)\n)?', re.IGNORECASE)
|
| 60 |
-
solution_pattern = re.compile(r'(?:\n|# |\n\#*\s*\d+\.\s*)Solution(?:\s*\d*\s*\(.+?\)|\s+\d+[\.\:])?.?', re.IGNORECASE)
|
| 61 |
|
| 62 |
start_position = find_problem_with_solution(text, problem_pattern, solution_pattern)
|
| 63 |
|
|
|
|
| 56 |
Returns:
|
| 57 |
Tuple[List, int]: A tuple containing the tags and problem number.
|
| 58 |
"""
|
| 59 |
+
problem_pattern = re.compile(r'(?:(?:\n|# )(?:Problem|Problems)\s+(\d+)\.?|\n(\d+)\.|P(\d+)\.)(?:\s*\(.+?\)\n)?', re.IGNORECASE)
|
| 60 |
+
solution_pattern = re.compile(r'(?:\n|# |\n\#*\s*\d+\.\s*)Solution(?:\s*\d*\s*\(.+?\)|\s+\d+[\.\:]|\s*\d\')?.?', re.IGNORECASE)
|
| 61 |
|
| 62 |
start_position = find_problem_with_solution(text, problem_pattern, solution_pattern)
|
| 63 |
|
EGMO/segmented/en-2025-solutions.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|