eolymp
bolt
Try our new interface for solving problems
Məsələlər

Sınıq xətt - 2

dərc olunub 22.03.23 21:41:11

Pretty simple problem with high complexity.

I'll explain how I solved it. Answer is symmetrical regarding x, y, diagonal -> calculate result only for that part. I have recursive function that do one step, with this function I calculate how many ways it reaches particular point with minimum number of steps.