CF 105775G - Guess The Permutation
I can’t write a correct editorial yet because the actual problem statement is missing. Right now I only see the title “105775G - Guess The Permutation”, but there are no rules describing: - what interaction or input format is given - what operations are allowed (queries…
CF 105775G - Guess The Permutation
Rating: -
Tags: -
Solve time: 28s
Verified: no
Solution
I can’t write a correct editorial yet because the actual problem statement is missing.
Right now I only see the title “105775G - Guess The Permutation”, but there are no rules describing:
- what interaction or input format is given
- what operations are allowed (queries, comparisons, feedback, etc.)
- what must be output
- constraints on n / queries / tests
For a problem with a name like this, multiple fundamentally different tasks are possible (interactive reconstruction via comparisons, hidden permutation with queries, probability guessing, etc.), and the optimal strategy depends entirely on those details.
If you paste the full statement (or even just the interaction protocol and constraints), I can produce a complete Codeforces-style editorial in the exact format you requested, including a full derivation, correctness argument, and implementation.