Amplitude Hackathon Winter '24 Problem 3 - Killer Queen
This C++ solution uses graph traversal for DMOJ ampl2024wp3 Amplitude Hackathon Winter '24 Problem 3 - Killer Queen. Read the reasoning, inspect the code, or try your own test case below.
Python records executed lines and locals automatically. For selected values in any language, add // @trace i, total on its own valid line; Python uses # @trace i, total.
StatusReady
Output
No run yet.
Diagnostics
No diagnostics yet.
Each run is isolated and has strict limits. Passing one test does not guarantee the judge will accept the solution.