## 12155 - ASCII Diamondi

Moderator: Board moderators

brianfry713
Guru
Posts: 5947
Joined: Thu Sep 01, 2011 9:09 am
Location: San Jose, CA, USA

### 12155 - ASCII Diamondi

Use this thread to discuss this problem.
Check input and AC output for thousands of problems on uDebug!

solon_aguiar
New poster
Posts: 7
Joined: Mon Jun 08, 2009 11:16 pm

### Re: 12155 - ASCII Diamondi

This input helped me figure out the solution.

Code: Select all

``````1 1 1 10 10
2 1 1 10 10
5 3 18 10 46
100 50 50 69 69
0 2 3 4 5
``````
Expected output:

Code: Select all

``````Case 1:
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
Case 2:
abbabbabba
b..b..b..b
b..b..b..b
abbabbabba
b..b..b..b
b..b..b..b
abbabbabba
b..b..b..b
b..b..b..b
abbabbabba
Case 3:
.edcbcde..edcbcde..edcbcde..e
edcbabcdeedcbabcdeedcbabcdeed
.edcbcde..edcbcde..edcbcde..e
..edcde....edcde....edcde....
...ede......ede......ede.....
....e........e........e......
....e........e........e......
...ede......ede......ede.....
Case 4:
utsrqponmlkjihgfedcb
tsrqponmlkjihgfedcba
srqponmlkjihgfedcbaz
rqponmlkjihgfedcbazy
qponmlkjihgfedcbazyx
ponmlkjihgfedcbazyxw
onmlkjihgfedcbazyxwv
nmlkjihgfedcbazyxwvu
mlkjihgfedcbazyxwvut
lkjihgfedcbazyxwvuts
kjihgfedcbazyxwvutsr
jihgfedcbazyxwvutsrq
ihgfedcbazyxwvutsrqp
hgfedcbazyxwvutsrqpo
gfedcbazyxwvutsrqpon
fedcbazyxwvutsrqponm
edcbazyxwvutsrqponml
dcbazyxwvutsrqponmlk
cbazyxwvutsrqponmlkj
bazyxwvutsrqponmlkji
``````
I couldn't figure out how to add it to uDebug, but at least it is here.

uDebug
A great helper
Posts: 475
Joined: Tue Jul 24, 2012 4:23 pm

### Re: 12155 - ASCII Diamondi

solon_aguiar wrote:This input helped me figure out the solution.
Thanks for sharing this input.
solon_aguiar wrote:I couldn't figure out how to add it to uDebug, but at least it is here.