def cell_ranking(problem):
    """ Generates the text inside a ranking cell """
    cell_str = f"{problem['correct_submissions']}/{problem['total_submissions']}"
    if problem['correct_submissions'] > 0:
        cell_str += f" ({problem['first_correct_submission']})"
    return cell_str