Problem 4039 · Medium

Sum of Decoded Numbers

Split each code by its width digit into x and y, then add x to the power y modulo 1000000007 using repeated squaring.

Open the interactive visualisation