add USA TSTST 2025
Browse files
USA_TSTST/md/en-probs-TSTST-2025.md
ADDED
|
@@ -0,0 +1,88 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
# USA TST Selection Test for \(67^{\mathrm{th}}\) IMO and \(15^{\mathrm{th}}\) EGMO
|
| 3 |
+
|
| 4 |
+
Aurora, IL
|
| 5 |
+
|
| 6 |
+
Day I 12:30pm - 5:00pm
|
| 7 |
+
|
| 8 |
+
Tuesday, June 24, 2025
|
| 9 |
+
|
| 10 |
+
Time limit: 4.5 hours. If you need to add page headers after the time limit, you must do so under proctor supervision. Proctors may not answer clarification questions.
|
| 11 |
+
|
| 12 |
+
You may keep the problems, but you cannot discuss them publicly until they are posted by staff online.
|
| 13 |
+
|
| 14 |
+
Problem 1. In a finite group of people, some pairs are friends (friendship is mutual). Each person \(p\) has a list \(f_{1}(p), f_{2}(p), \ldots , f_{d(p)}(p)\) of their friends, where \(d(p)\) is the number of distinct friends \(p\) has. Additionally, any two people are connected by a series of friendships. Each person also has a water balloon. The following game is played until someone ends up with more than one water balloon: on round \(r\) , each person \(p\) throws the current water balloon they have to their friend \(f_{s}(p)\) such that \(d(p)\) divides \(r - s\) . Show that if the game never ends, then everyone has the same number of friends.
|
| 15 |
+
|
| 16 |
+
Problem 2. Find all sets \(S \subseteq \mathbb{Z}\) for which there exists a function \(f: \mathbb{R} \to \mathbb{Z}\) such that
|
| 17 |
+
|
| 18 |
+
- \(f(x - y) - 2f(x) + f(x + y) \geq -1\) for all \(x, y \in \mathbb{R}\) , and
|
| 19 |
+
|
| 20 |
+
- \(S = \{f(z) \mid z \in \mathbb{R}\}\) .
|
| 21 |
+
|
| 22 |
+
Problem 3. Let \(a_{1}, a_{2}, r\) , and \(s\) be positive integers with \(r\) and \(s\) odd. The sequence \(a_{1}, a_{2}, a_{3}, \ldots\) is defined by
|
| 23 |
+
|
| 24 |
+
\[a_{n + 2} = r a_{n + 1} + s a_{n}\]
|
| 25 |
+
|
| 26 |
+
for all \(n \geq 1\) . Determine the maximum possible number of integers \(1 \leq \ell \leq 2025\) such that \(a_{\ell}\) divides \(a_{\ell +1}\) , over all possible choices of \(a_{1}, a_{2}, r\) , and \(s\) .
|
| 27 |
+
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
# USA TST Selection Test for \(67^{\mathrm{th}}\) IMO and \(15^{\mathrm{th}}\) EGMO
|
| 31 |
+
|
| 32 |
+
Aurora, IL
|
| 33 |
+
|
| 34 |
+
Day II 12:30pm - 5:00pm
|
| 35 |
+
|
| 36 |
+
Thursday, June 26, 2025
|
| 37 |
+
|
| 38 |
+
Time limit: 4.5 hours. If you need to add page headers after the time limit, you must do so under proctor supervision. Proctors may not answer clarification questions.
|
| 39 |
+
|
| 40 |
+
You may keep the problems, but you cannot discuss them publicly until they are posted by staff online.
|
| 41 |
+
|
| 42 |
+
Problem 4. Let \(n \geq 2\) be a positive integer. Let \(a_{1}, a_{2}, \ldots , a_{n}\) be a sequence of positive integers such that
|
| 43 |
+
|
| 44 |
+
\[\gcd (a_{1},a_{2}),\gcd (a_{2},a_{3}),\ldots ,\gcd (a_{n - 1},a_{n})\]
|
| 45 |
+
|
| 46 |
+
is a strictly increasing sequence. Find, in terms of \(n\) , the maximum possible value of
|
| 47 |
+
|
| 48 |
+
\[\frac{1}{a_{1}} +\frac{1}{a_{2}} +\dots +\frac{1}{a_{n}}\]
|
| 49 |
+
|
| 50 |
+
over all such sequences.
|
| 51 |
+
|
| 52 |
+
Problem 5. A tetrahedron \(ABCD\) is said to be angelic if it has nonzero volume and satisfies
|
| 53 |
+
|
| 54 |
+
\[\angle BAC + \angle CAD + \angle DAB = \angle ABC + \angle CBD + \angle DBA,\] \[\angle ACB + \angle BCD + \angle DCA = \angle ADB + \angle BDC + \angle CDA.\]
|
| 55 |
+
|
| 56 |
+
Across all angelic tetrahedrons, what is the maximum number of distinct lengths that could appear in the set \(\{AB, AC, AD, BC, BD, CD\}\) ?
|
| 57 |
+
|
| 58 |
+
Problem 6. Alice and Bob play a game on \(n\) vertices labelled \(1, 2, \ldots , n\) . They take turns adding edges \(\{i, j\}\) , with Alice going first. Neither player is allowed to make a move that creates a cycle, and the game ends after \(n - 1\) total turns.
|
| 59 |
+
|
| 60 |
+
Let the weight of the edge \(\{i, j\}\) be \(|i - j|\) , and let \(W\) be the total weight of all edges at the end of the game. Alice plays to maximize \(W\) and Bob plays to minimize \(W\) . If both play optimally, what will \(W\) be?
|
| 61 |
+
|
| 62 |
+
|
| 63 |
+
|
| 64 |
+
# USA TST Selection Test for \(67^{\mathrm{th}}\) IMO and \(15^{\mathrm{th}}\) EGMO
|
| 65 |
+
|
| 66 |
+
Aurora, IL
|
| 67 |
+
|
| 68 |
+
Day III 12:30pm - 5:00pm
|
| 69 |
+
|
| 70 |
+
Saturday, June 28, 2025
|
| 71 |
+
|
| 72 |
+
Time limit: 4.5 hours. If you need to add page headers after the time limit, you must do so under proctor supervision. Proctors may not answer clarification questions.
|
| 73 |
+
|
| 74 |
+
You may keep the problems, but you cannot discuss them publicly until they are posted by staff online.
|
| 75 |
+
|
| 76 |
+
Problem 7. For a positive real number \(c\) , the sequence \(a_{1}, a_{2}, \ldots\) of real numbers is defined as follows. Let \(a_{1} = c\) , and for \(n \geq 2\) , let
|
| 77 |
+
|
| 78 |
+
\[a_{n} = \sum_{i = 1}^{n - 1}(a_{i})^{n - i + 1}.\]
|
| 79 |
+
|
| 80 |
+
Find all positive real numbers \(c\) such that \(a_{i} > a_{i + 1}\) for all positive integers \(i\) .
|
| 81 |
+
|
| 82 |
+
Problem 8. Find all polynomials \(f\) with integer coefficients such that for all positive integers \(n\) ,
|
| 83 |
+
|
| 84 |
+
\[n \text{ divides } \frac{f(f(\ldots(f(0)) \ldots) - 1}{n + 1 f^{\mathrm{s}}}\]
|
| 85 |
+
|
| 86 |
+
Problem 9. Let acute triangle \(ABC\) have orthocenter \(H\) . Let \(B_{1}\) , \(C_{1}\) , \(B_{2}\) , and \(C_{2}\) be collinear points which lie on lines \(AB\) , \(AC\) , \(BH\) , and \(CH\) , respectively. Let \(\omega_{B}\) and \(\omega_{C}\) be the circumcircles of triangles \(BB_{1}B_{2}\) and \(CC_{1}C_{2}\) , respectively. Prove that the radical axis of \(\omega_{B}\) and \(\omega_{C}\) intersects the line through their centers on the nine- point circle of triangle \(ABC\) .
|
| 87 |
+
|
| 88 |
+
|
USA_TSTST/md/en-sols-TSTST-2025.md
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
USA_TSTST/raw/en-probs-TSTST-2025.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:aad8f4dc5bef29da0db7b997758810035f55397ecad0020dc5164cd93cd1ce59
|
| 3 |
+
size 145663
|
USA_TSTST/raw/en-sols-TSTST-2025.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# -----------------------------------------------------------------------------
|
| 2 |
+
# Author: Jiawei Liu
|
| 3 |
+
# Date: 2025-10-29
|
| 4 |
+
# -----------------------------------------------------------------------------
|
| 5 |
+
import json
|
| 6 |
+
import re
|
| 7 |
+
from pathlib import Path
|
| 8 |
+
|
| 9 |
+
from rapidfuzz import fuzz
|
| 10 |
+
|
| 11 |
+
|
| 12 |
+
def clean_text(text: str):
|
| 13 |
+
text = re.sub(
|
| 14 |
+
r"^# USA TST Selection Test for.*?them publicly until they are posted by staff online\.",
|
| 15 |
+
"",
|
| 16 |
+
text,
|
| 17 |
+
flags=re.DOTALL | re.MULTILINE | re.IGNORECASE,
|
| 18 |
+
)
|
| 19 |
+
return text
|
| 20 |
+
|
| 21 |
+
|
| 22 |
+
def extract_problems(markdown_text: str):
|
| 23 |
+
problems = {}
|
| 24 |
+
|
| 25 |
+
# Each problem starts with a number followed by a dot and space (e.g., 'Problem 1. ')
|
| 26 |
+
matchs = list(
|
| 27 |
+
re.finditer(
|
| 28 |
+
r"^Problem\s*(\d+)\.\s+", markdown_text, flags=re.DOTALL | re.MULTILINE
|
| 29 |
+
)
|
| 30 |
+
)
|
| 31 |
+
|
| 32 |
+
# Split the text into parts using the problem numbers as delimiters
|
| 33 |
+
for i, m in enumerate(matchs):
|
| 34 |
+
problem_label = m.group(1)
|
| 35 |
+
problem = markdown_text[
|
| 36 |
+
m.end() : matchs[i + 1].start()
|
| 37 |
+
if i + 1 < len(matchs)
|
| 38 |
+
else len(markdown_text)
|
| 39 |
+
]
|
| 40 |
+
|
| 41 |
+
problems[problem_label] = (problem.strip(), m.group())
|
| 42 |
+
|
| 43 |
+
print(f" - Extracted {len(problems)} problems.")
|
| 44 |
+
|
| 45 |
+
return problems
|
| 46 |
+
|
| 47 |
+
|
| 48 |
+
def extract_solutions(markdown_text):
|
| 49 |
+
solutions = {}
|
| 50 |
+
|
| 51 |
+
# 1. Find the block of text containing the solutions
|
| 52 |
+
# Block starts with '## \(S 1\) Solutions to Day 1' and end of document
|
| 53 |
+
solutions_section = re.search(
|
| 54 |
+
r"^##.*?Solutions to Day 1\s*$(.*)",
|
| 55 |
+
markdown_text,
|
| 56 |
+
re.DOTALL | re.MULTILINE,
|
| 57 |
+
)
|
| 58 |
+
|
| 59 |
+
|
| 60 |
+
if not solutions_section:
|
| 61 |
+
print(" - Not found Solutions section.")
|
| 62 |
+
return solutions
|
| 63 |
+
|
| 64 |
+
solutions_block = solutions_section.group(1)
|
| 65 |
+
|
| 66 |
+
## \(\S 1.1\) Solution to TSTST 1, by Milan Haiman
|
| 67 |
+
# 2. Split the block into individual solutions
|
| 68 |
+
matchs = list(
|
| 69 |
+
re.finditer(r"^##.*?Solution.*?TSTST\s*(\d+).*?\n$", solutions_block, flags=re.MULTILINE)
|
| 70 |
+
)
|
| 71 |
+
|
| 72 |
+
# Split the text into parts using the solution numbers as delimiters
|
| 73 |
+
for i, m in enumerate(matchs):
|
| 74 |
+
problem_label = m.group(1)
|
| 75 |
+
solution = solutions_block[
|
| 76 |
+
m.end() : matchs[i + 1].start()
|
| 77 |
+
if i + 1 < len(matchs)
|
| 78 |
+
else len(solutions_block)
|
| 79 |
+
]
|
| 80 |
+
|
| 81 |
+
solutions[problem_label] = (solution.strip(), m.group())
|
| 82 |
+
|
| 83 |
+
print(f" - Extracted {len(solutions)} solutions.")
|
| 84 |
+
|
| 85 |
+
return solutions
|
| 86 |
+
|
| 87 |
+
|
| 88 |
+
def join(problems: dict, solutions: dict):
|
| 89 |
+
pairs = []
|
| 90 |
+
|
| 91 |
+
for problem_label, (problem, p_match) in problems.items():
|
| 92 |
+
solution, s_match = solutions.get(problem_label)
|
| 93 |
+
|
| 94 |
+
# Clean solution by removing the part that overlaps with the problem statement
|
| 95 |
+
problem_align = fuzz.partial_ratio_alignment(solution, problem)
|
| 96 |
+
solution = solution.replace(
|
| 97 |
+
solution[problem_align.src_start : problem_align.src_end], ""
|
| 98 |
+
)
|
| 99 |
+
solution = re.sub(
|
| 100 |
+
r"##.*?Solutions to Day \d", "", solution, flags=re.IGNORECASE
|
| 101 |
+
).strip()
|
| 102 |
+
|
| 103 |
+
if not solution:
|
| 104 |
+
print(f" - Warning: No solution found for problem {problem_label}.")
|
| 105 |
+
pairs.append((problem, solution, problem_label, p_match, s_match))
|
| 106 |
+
|
| 107 |
+
return pairs
|
| 108 |
+
|
| 109 |
+
|
| 110 |
+
def write_pairs(output_file: Path, pairs: list, year: str, project_root: Path):
|
| 111 |
+
output_jsonl_text = ""
|
| 112 |
+
for problem, solution, problem_label, p_match, s_match in pairs:
|
| 113 |
+
output_jsonl_text += (
|
| 114 |
+
json.dumps(
|
| 115 |
+
{
|
| 116 |
+
"year": year,
|
| 117 |
+
"tier": "T0",
|
| 118 |
+
"problem_label": problem_label,
|
| 119 |
+
"problem_type": None,
|
| 120 |
+
"exam": "IMO",
|
| 121 |
+
"problem": problem,
|
| 122 |
+
"solution": solution,
|
| 123 |
+
"metadata": {
|
| 124 |
+
"resource_path": output_file.relative_to(
|
| 125 |
+
project_root
|
| 126 |
+
).as_posix(),
|
| 127 |
+
"problem_match": p_match,
|
| 128 |
+
"solution_match": s_match,
|
| 129 |
+
},
|
| 130 |
+
},
|
| 131 |
+
ensure_ascii=False,
|
| 132 |
+
)
|
| 133 |
+
+ "\n"
|
| 134 |
+
)
|
| 135 |
+
|
| 136 |
+
output_file.write_text(output_jsonl_text, encoding="utf-8")
|
| 137 |
+
|
| 138 |
+
|
| 139 |
+
if __name__ == "__main__":
|
| 140 |
+
compet_base_path = Path(__file__).resolve().parent.parent
|
| 141 |
+
compet_md_path = compet_base_path / "md"
|
| 142 |
+
seg_output_path = compet_base_path / "segmented"
|
| 143 |
+
project_root = compet_base_path.parent
|
| 144 |
+
|
| 145 |
+
num_problems = 0
|
| 146 |
+
num_solutions = 0
|
| 147 |
+
|
| 148 |
+
problems_md = list(compet_md_path.glob("**/*probs*2025.md"))[0]
|
| 149 |
+
solutions_md = list(compet_md_path.glob("**/*sols*2025.md"))[0]
|
| 150 |
+
|
| 151 |
+
output_file = seg_output_path / solutions_md.relative_to(
|
| 152 |
+
compet_md_path
|
| 153 |
+
).with_suffix(".jsonl")
|
| 154 |
+
output_file.parent.mkdir(parents=True, exist_ok=True)
|
| 155 |
+
|
| 156 |
+
# Read the markdown file
|
| 157 |
+
problems_md_text = "\n" + clean_text(problems_md.read_text(encoding="utf-8"))
|
| 158 |
+
solutions_md_text = "\n" + clean_text(solutions_md.read_text(encoding="utf-8"))
|
| 159 |
+
|
| 160 |
+
problems = extract_problems(problems_md_text)
|
| 161 |
+
solutions = extract_solutions(solutions_md_text)
|
| 162 |
+
|
| 163 |
+
num_problems += len(problems)
|
| 164 |
+
num_solutions += len(solutions)
|
| 165 |
+
|
| 166 |
+
pairs = join(problems, solutions)
|
| 167 |
+
|
| 168 |
+
year = re.search(r"\d{4}", output_file.stem).group()
|
| 169 |
+
|
| 170 |
+
write_pairs(output_file, pairs, year, project_root)
|
| 171 |
+
|
| 172 |
+
print()
|
| 173 |
+
|
| 174 |
+
print(f"Total problems extracted: {num_problems}")
|
| 175 |
+
print(f"Total solutions extracted: {num_solutions}")
|
USA_TSTST/segmented/en-sols-TSTST-2025.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|