629 - Test

All about problems in Volume 6. 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
Yoko
New poster
Posts: 4
Joined: Wed Jul 28, 2004 6:15 pm

629 - Test

Post by Yoko »

Please,

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

thx
Jan
Guru
Posts: 1334
Joined: Wed Jun 22, 2005 10:58 pm
Location: Dhaka, Bangladesh
Contact:

Re: 629 - Test

Post 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.
Ami ekhono shopno dekhi...
HomePage
Post Reply

Return to “Volume 6 (600-699)”