in src/open_r1/utils/competitive_programming/ioi_scoring.py [0:0]
def to_dict(self):
"""
Converts the SubtaskResult to a dictionary representation.
Returns:
dict: Dictionary containing all subtask result data
"""
return {
"problem": self.problem,
"subtask": self.subtask,
"score": self.score,
"weighted_score": self.weighted_score,
"points": self.points,
"score_precision": self.score_precision,
"status": self.status,
"test_results": [asdict(test_result) for test_result in self.test_results],
}