Calculate Compressed Mean

Compute the floor of the weighted average from a frequency table. Multiply each value by its frequency, sum the products, divide by total frequency, and round down.

Examples
Input: [[1,5],[2,3]]
Output: 1
Hints

Calculate Compressed Mean

Compute the floor of the weighted average from a frequency table. Multiply each value by its frequency, sum the products, divide by total frequency, and round down.