Back to Problem Solutions forum
I don't understand why my solution is wrong Please help me
My input data:
XX---XX
-X-XXX-
-----X
XX-XX-X
XXX-X-
My answer: 18 12 10 11 12
Expected answer was: 19 18 20 20 26
My steps:
XX---XX
-X-XXX-
-----X-
XX-XX-X
XXX-X--
XXX--XX
XXX----
XX----X
X--XX--
X-X-XX-
X-X----
-----XX
---X---
X-XXX--
-X--XX-
-------
-------
--XX-X-
-XX--X-
-XX-XX-
-------
-------
-XXXX--
-----XX
-XXXXX-
18 12 10 11 12
I realized my mistake, I need to enlarge my "map"
I removed my code so that other participants would be motivated to solve the problem themselves
Artem, Hi!
Glad to see you figured it out! Verily, this problem is less or more straightforward and field edges are the most common question about it so far.
Perhaps we should introduce some, hm, hints shown after several unsuccessful submissions :)