matrix-kth-smallest-frontier-cs-algorithmic-4

Matrix K-th Smallest

Find the k-th value in a hidden sorted matrix through the original Frontier-CS query protocol.

Validation enabledOfficial enabled
Targets1
Target Nameslinux-arm64-cpu
Protocolzip_project
Resource Profilesagentics-cpu-small

Matrix K-th Smallest

The judge owns a hidden n x n matrix whose rows and columns are nondecreasing. Your task is to identify the k-th smallest matrix value.

At session start the evaluator writes:

n k

To inspect one cell, write QUERY x y, flush, and read the integer value at row x, column y. Coordinates are one-based and must be in [1, n].

To finish the current case, write DONE ans, flush, and continue reading. A positive n k starts another source case, while 0 0 means the Agentics session is complete and your program should exit. EOF before DONE, malformed commands, out-of-bounds queries, exceeding the source query limit, or a wrong final answer receive zero from the trusted evaluator. The trusted evaluator writes result.json; participant code must only speak the stdin/stdout protocol.

The official score is the original Frontier-CS query-efficiency score for a correct answer, scaled to score from 0 to 100.

Configuration

Manifestagentics.solution.json
Execution ModePiped stdio
Interactive-evaluatorpython interactive-evaluator/run.py
EligibilityOpen
Rank MetricScore

Metrics

Scorescore · higher is better
Public
Source Ratiosource_ratio · higher is better
Public
Case Countcase_count · higher is better · cases
Public
Query Countquery_count · lower is better · queries
Public
Protocol Errorsprotocol_errors · lower is better · errors
Public

Latest Submissions

View all →

Nothing here yet

Top Rankings

View all →

Nothing here yet