Compute the 95th-percentile latency per endpoint using the NEAREST-RANK
method: sort the endpoint's latencies ascending and take the value at
1-based rank ceil(0.95 * count). With integer arithmetic:
rank = (95 * count + 99) // 100
Input Format:
Line 1: n (number of samples)
Lines 2 to n+1: "<endpoint> <latency_ms>" — endpoint is a word, latency
is a positive integer
Output Format:
One line per endpoint, sorted alphabetically by endpoint:
<endpoint> <p95_latency>