HF RL Explorer

Write a program named topk agg that reads a stream of records from standard input and outputs a strict…

Write a program named topk agg that reads a stream of records from standard input and outputs a strict…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input format (stdin): - One record per line, separated by LF ( \n ). - Each record is a comma-separated pair…

The task

**Input format (stdin):** - One record per line, separated by LF (`\n`). - Each record is a comma-separated pair: `id,value` - `id` is a non-empty UTF-8 string (may contain any characters except comma, LF, and null byte). Maximum length 256 bytes. - `value` is a floating-point number, possibly negative, possibly in…

Part of ai-and/termgrade-environments.