Write a command-line tool logquery that reads a custom log format from stdin and prints the median of all…
Write a command-line tool logquery that reads a custom log format from stdin and prints the median of all…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input format (stdin): - One line per entry. - Fields separated by exactly one space. - Field order: timestamp…
The task
Input format (stdin): - One line per entry. - Fields separated by exactly one space. - Field order: `timestamp service_name latency_ms` - `timestamp` is ISO-8601 with seconds precision (no fractional seconds, no timezone offset), e.g. `2025-01-15T08:23:01` - `service_name` is a non-empty string that may contain ANY…
Part of ai-and/termgrade-environments.