Page 1 of 1

629 - Test

Posted: Mon Oct 11, 2004 6:43 am
by Yoko
Please,

may someone put somet tests case for this prob... I aw recive WA :(

thx

Re: 629 - Test

Posted: Wed Jul 09, 2008 7:01 am
by Jan
Try the cases...

Input:

Code: Select all

3
-*-
---
---
3
-**
--*
---
3
---
---
---
4
----
--**
---*
----
9
---*--*--
-----*---
------*--
---------
-------*-
--------*
---------
---------
---------
10
-*********
--********
---*******
----******
-----*****
------****
-------***
--------**
---------*
----------
10
-***-*---*
--*-**--*-
---*--*-**
----*----*
-----***-*
------*--*
-------*-*
--------**
---------*
----------
5
-----
-----
-----
----*
-----
1
-
2
--
--
2
-*
--
10
-----*---*
----*-----
---*------
---------*
-------*--
------*---
----------
--------*-
---------*
----------
10
-----*---*
----*-----
---*------
---------*
----------
------*---
----------
--------*-
---------*
----------
10
-----*---*
------*---
---*---*--
------*--*
--------*-
------*---
--------*-
--------*-
---------*
----------
Output:

Code: Select all

a
b
ab
-----
a
b
c
-----
a
a
a
-----
abc
a
b
c
-----
abgh
abcdef
abcdghij
cdefijkl
acegik
ghijkl
efkl
bdfhjl
abcdef
-----
a
b
c
d
e
f
g
h
i
j
-----
abi
cdj
ek
cdfgh
ak
efg
bch
defi
abgh
j
-----
ab
ab
ab
a
b
-----
a
-----
a
a
-----
a
b
-----
abcdef
abcdghijk
abeghilmn
cdfjko
eflmno
gijklmo
abcdefhn
acghj
bdefiklo
ghmn
-----
abcdefgh
abcdijmno
abefijklmp
cdghnoqr
efghklpqr
ikmnopqr
abcdefghjl
acegijklnq
bdfhmopr
ijkl
-----
aefghi
abcdefgjk
befhjl
acgk
abcdehilm
bcdjk
hilm
acdim
fgjk
bdlm
-----
Hope these help.