release: prepare Hulumath v1.2.0
This commit is contained in:
@@ -117,6 +117,21 @@ def _generate_advanced():
|
||||
result = n * (n + 1) // 2
|
||||
questions.append((f"a-auto-sum-{idx:04d}", f"1 到 {n} 的整数和", str(result)))
|
||||
idx += 1
|
||||
# 一元一次方程,补足稳定的 200 题池
|
||||
for solution in range(2, 60):
|
||||
if idx >= 200:
|
||||
break
|
||||
coefficient = solution % 7 + 2
|
||||
offset = solution % 11 + 1
|
||||
total = coefficient * solution + offset
|
||||
questions.append(
|
||||
(
|
||||
f"a-auto-linear-{idx:04d}",
|
||||
f"{coefficient}x + {offset} = {total},求 x",
|
||||
str(solution),
|
||||
)
|
||||
)
|
||||
idx += 1
|
||||
return questions[:200]
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user