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,2],[2,1],[3,3]]
Output: 2
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.