MathDB
A problem

Source:

June 28, 2017
combinatoricsTuymaada

Problem Statement

Positive numbers are written in the squares of a 10 × 10 table. Frogs sit in five squares and cover the numbers in these squares. Kostya found the sum of all visible numbers and got 10. Then each frog jumped to an adjacent square and Kostya’s sum changed to 10210^2. Then the frogs jumped again, and the sum changed to 10310^3 and so on: every new sum was 10 times greater than the previous one. What maximum sum can Kostya obtain?