MCPcopy Create free account
hub / github.com/algorithmicsuperintelligence/optillm / get_problem_by_id

Function get_problem_by_id

scripts/imo25_reference.py:294–296  ·  view source on GitHub ↗

Get problem data by ID

(problem_id: int)

Source from the content-addressed store, hash-verified

292 }
293
294def get_problem_by_id(problem_id: int) -> Optional[Dict[str, Any]]:
295 """Get problem data by ID"""
296 return next((p for p in IMO_2025_PROBLEMS if p["id"] == problem_id), None)
297
298def get_expected_answer(problem_id: int) -> Optional[str]:
299 """Get the expected answer for a problem"""

Callers 2

get_expected_answerFunction · 0.85
get_answer_typeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected