Solve competitive programming problems in C++ for Codeforces / AtCoder-style judges that read from stdin and write to stdout. Use this whenever the user pastes a contest problem statement, mentions Codeforces, AtCoder, ICPC, or a problem with constraints and sample input/output, or asks for an efficient algorithm to pass given limits — even if they don't say the words "competitive programming." Also trigger when the user shares a problem with time/memory limits, asks why their solution gets TLE/WA/RE, wants a faster approach for large N, or already has an algorithm in mind and wants it validated and implemented.