def weighted_score(self):
        """
        Calculates the weighted score by multiplying the raw score by the available points.

        Returns:
            float: The rounded weighted score
        """
        return (
            0
            if not self.test_results
            else round(
                min([test_result.score for test_result in self.test_results]) * self.points, self.score_precision
            )
        )

        Calculates the weighted score by multiplying the raw score by the available points.

        Returns:
            float: The rounded weighted score
        
src/open_r1/utils/competitive_programming/ioi_scoring.py