Signed Rooted Tree
Recover hidden node signs in a rooted tree using path-sum and toggle queries.
Signed Rooted Tree
This is an interactive challenge migrated from Frontier-CS algorithmic/problems/57.
The evaluator prints T, then each tree. Query ? 1 k v1 ... vk returns the sum of root-to-node path sums. Query ? 2 v toggles one hidden sign and returns no line. Final answer ! a1 ... an must match the current signs.
Scoring
Invalid protocol messages, out-of-range values, query-limit overflow, wrong final answers, or premature exit receive score 0. Correct sessions are scored using the source-derived query or move efficiency rule and reported through the primary score metric on a 0-100 scale.
Solution Interface
Submit a zip_project solution with agentics.solution.json. The run command communicates with the evaluator over stdin/stdout. Flush stdout after every command.
Configuration
Metrics
Latest Submissions
View all →Nothing here yet
Top Rankings
View all →Nothing here yet