CF 105679C - Lantern Riddle

Got it - I’ll write it in Codeforces editorial style. Please send the problem statement (or link/text), and if possible also include: - constraints - input/output format - sample tests (if any) Once I have that, I’ll produce a full competitive programming editorial with: -…

CF 105679C - Lantern Riddle

Rating: -
Tags: -
Solve time: 26s
Verified: no

Solution

Got it - I’ll write it in Codeforces editorial style.

Please send the problem statement (or link/text), and if possible also include:

  • constraints
  • input/output format
  • sample tests (if any)

Once I have that, I’ll produce a full competitive programming editorial with:

  • intuition
  • step-by-step reasoning
  • optimal solution
  • complexity analysis
  • and optionally alternative approaches / pitfalls if relevant.