Օձը
![notion image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2Fa7ef1d86-e59b-4016-b908-d1700526bdeb%2Fmaxresdefault.jpg?table=block&id=3ac86e06-0f7d-4496-a771-7111e8ea6c61&cache=v2)
Snake խաղը պատրաստելու համար անհրաժեշտ է դաշտը համարակալել օձի հետագծով։
Մուտքում ունենալով
n
և m
թվերը, անհրաժեշտ է տպել համարակալված դաշտը։Մուտք՝
4 10
Ելք՝
0 1 2 3 4 5 6 7 8 9
19 18 17 16 15 14 13 12 11 10
20 21 22 23 24 25 26 27 28 29
39 38 37 36 35 34 33 32 31 30
Constraints
Time limit: 0.2 seconds
Memory limit: 512 MB
Output limit: 1 MB