The other day I came up with a problem and I'd appreciate some honest feedback as to whether or not it's a good (enjoyable/interesting) problem. I'd also appreciate it if you could gauge its difficulty by voting below. And I'd appreciate any feedback.
Problem Statement:
You are given an integer $$$n$$$ where $$$1 \le n \le 2000$$$. Consider a square grid with $$$n$$$ rows and $$$n$$$ columns. You are tasked with arranging the first $$$n^2$$$ whole numbers (that is, the integers $$$0, \,1, \,2 \,...\, n^2 - 3,\,n^2 - 2,\,n^2 - 1$$$) inside the grid, with exactly one number on each cell of the grid.
A frog starts in the bottom-left cell of the grid. The number of the cell the frog is currently on will tell the frog a magnitude and a direction to jump. Specifically, say the frog is at a cell that contains the number $$$a$$$.
The frog will then jump a magnitude of $$$\lfloor \frac{a}{4} \rfloor + 1$$$ units in the direction of $$$a \mod 4$$$.
As for the direction, let a value of $$$0$$$ represent a jump to the right, a value of $$$1$$$ represent a jump upwards, a value of $$$2$$$ represent a jump to the left, and a value of $$$3$$$ represent a jump downwards.
For example, if the frog is currently on a cell with the number $$$9$$$, then the frog will jump $$$\lfloor \frac{9}{4} \rfloor + 1 = 3$$$ units and in the upwards direction, since $$$9 \mod 4 = 1$$$, and $$$1$$$ represents a jump upwards.
Starting at the bottom-left cell, the frog will make a series of jumps around the grid based on the number in his current cell. However, if the frog sees that his next jump will lead him off of the grid, then he will not make that jump and stop in his current cell permamently.
Your task is to find and output the maximum number of jumps the frog can perform, given that he starts off in the bottom-left corner. The frog does not want to jump forever; he wants to perform the maximum finite number of jumps.
You also should output a grid where, if the frog were to start in the bottom-left cell of the grid, he could make that maximum number of jumps, without jumping forever. If multiple grids allow for maximum jumps, you can output any.
Input:
a single integer $$$n$$$ where $$$1 \le n \le 2000$$$.
Output:
a single integer representing the maximum number of jumps the frog can perform without jumping forever followed by any $$$n \times n$$$ grid that allows the frog to perform exactly that many jumps.
This problem is:
This problem's difficulty most closely aligns with:














