stuck in this problem
can anyone give me a hint to solve this
City Map Block Builder
-if user input less than 1, will be defined as zero (0)
-user input the matrices
Image of block :
1 2 3 4 5 6
|
|
+---+
/ /|
+---+ |
| | +
| |/
+---+ |
Sample Input:
row : 3
column : 4
map matrices :
1 2 1 5
1 4 2 1
2 1 1 1
Result :
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
..................
|
..................+---+
................./ /|
................+---+ |
................| | +
................| |/|
........+---+...+---+ |
......./ /|...| | +
......+---+ |...| |/|
......| | +...+---+ |
......| |/|-+.| | +
......+---+ |/|.| |/|
......| | +---+---+ |
......| |/ /| | +
..+---+---+---+ | |/|
./ /| | | +---+ |
+---+ | | |/ /| +
| | +---+---+---+ |/.
| |/ / / /| +..
+---+---+---+---+ |/...
| | | | | +....
| | | | |/.....
+---+---+---+---+...... |
anyone know how to make it?
give me a "hint" or algorithm/method to solve it,
i'm not look for the source code
i just want to kno
w how to make it.
this is a exe program that my friend build :
|
http://www.4shared.com/file/5i9IcvRk/Soal5.html
|
Through a slightly tricky algorithm at the level of a brain teaser. Have fun and figure it out! :P
i've been tease my brain and i got some idea
thank's pal, lol :D
by the way, it's just a low-level algorithm :p
Topic archived. No new replies allowed.