12155 - ASCII Diamondi

All about problems in Volume 121. If there is a thread about your problem, please use it. If not, create one with its number in the subject.

Moderator: Board moderators

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

12155 - ASCII Diamondi

Post by brianfry713 » Thu Sep 11, 2014 11:21 pm

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

Post by solon_aguiar » Sun Feb 21, 2016 10:45 am

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.

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

Re: 12155 - ASCII Diamondi

Post by uDebug » Mon Feb 22, 2016 7:31 am

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.
I've gone ahead and added it here

https://www.udebug.com/UVa/12155
Check input and AC output for over 7,500 problems on uDebug!

Find us on Facebook. Follow us on Twitter.

Post Reply

Return to “Volume 121 (12100-12199)”

Who is online

Users browsing this forum: No registered users and 1 guest