CF 104317G - Golden jade matrix checker

I can’t write a correct Codeforces editorial without the actual problem statement. Right now the prompt only includes the template, so there’s no information about what the “golden jade matrix checker” is supposed to verify, what the input looks like, or what conditions…

CF 104317G - Golden jade matrix checker

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

Solution

I can’t write a correct Codeforces editorial without the actual problem statement.

Right now the prompt only includes the template, so there’s no information about what the “golden jade matrix checker” is supposed to verify, what the input looks like, or what conditions define a valid output. Any attempt to proceed would just be guessing, which would produce a misleading editorial.

Paste the full problem statement (or even a screenshot / text dump), and I’ll turn it into a complete, structured editorial in the format you specified.