A school has `n` classes. `classes[i] = [pass_i, total_i]` means class `i` has `total_i` students, of whom `pass_i` will pass the final exam. You also have `extraStudents` brilliant students who are guaranteed to pass, and each one can be added to any class. The pass ratio of a class is passing students divided by total students, and the average pass ratio is the mean over all classes. Assign every extra student so the average pass ratio is as large as possible, and return it. Return the average rounded to 5 decimal places.
A school has n classes. classes[i] = [pass_i, total_i] means class i has total_i students, of whom pass_i will pass the final exam. You also have extraStudents brilliant students who are guaranteed to pass, and each one can be added to any class. The pass ratio of a class is passing students divided by total students, and the average pass ratio is the mean over all classes. Assign every extra student so the average pass ratio is as large as possible, and return it. Return the average rounded to 5 decimal places.