-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpart2_out3.txt
61 lines (61 loc) · 1.18 KB
/
part2_out3.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
max_n = 3
Enter a grid index less than or equal to 3 (0 to end): 3
Enter the maximum step height: 4
Should the path grid be printed (Y or N): y
Grid has 15 rows and 7 columns
global max: (9,5) 33
===
steepest path
(0,2) (0,3)
no maximum
...
most gradual path
(0,2) (0,3)
no maximum
===
steepest path
(3,6) (4,6) (5,6) (5,5) (6,5)
(7,5) (8,5) (9,5)
global maximum
...
most gradual path
(3,6) (4,6) (5,6) (5,5) (6,5)
(7,5) (8,5) (9,5)
global maximum
===
steepest path
(14,0) (14,1) (13,1) (13,2) (13,3)
(12,3) (11,3) (10,3) (10,4) (9,4)
(9,5)
global maximum
...
most gradual path
(14,0) (13,0) (12,0) (11,0) (10,0)
(9,0) (8,0) (7,0) (6,0) (6,1)
(5,1) (4,1)
no maximum
===
steepest path
(12,6) (12,5) (11,5) (10,5) (9,5)
global maximum
...
most gradual path
(12,6) (11,6) (10,6) (9,6)
no maximum
===
Path grid
. . 2 2 . . .
. . . . . . .
. . . . . . .
. . . . . . 2
. 1 . . . . 2
. 1 . . . 2 2
1 1 . . . 2 .
1 . . . . 2 .
1 . . . . 2 .
1 . . . 1 4 1
1 . . 1 1 1 1
1 . . 1 . 1 1
1 . . 1 . 1 2
1 1 1 1 . . .
2 1 . . . . .