Thx...Adv- enture- s
of
disney-154323 land
in Ja-
pan."-
".
![:)](./images/smilies/icon_smile.gif)
Moderator: Board moderators
Thx...Adv- enture- s
of
disney-154323 land
in Ja-
pan."-
".
Well, if your accepted program produces that output, then the judges' input is too weak, because the correct output isStatujaLeha wrote:my accepted program producesadventures
disney
in
japan
land
of
Code: Select all
adv-
disney-
enture-
in
japan
land
of
s
The hyphen character is part of the word if, and only if, not followed by a newline.
Code: Select all
adv
disney
enture
in
japan
land
of
s
Code: Select all
adv-
disney-
enture-
in
japan
land
of
s
Code: Select all
disney-
-enture-
- in
japan
land
of
Yes, this the most correct output. Read little joey's post.mute wrote:My code outputsI am confused??Code: Select all
adv- disney- enture- in japan land of s
The correct output is:mute wrote:![]()
![]()
If the input is what will be the outputCode: Select all
disney- -enture- - in japan land of
Code: Select all
disney-enture-
in
japan
land
of
Try this one:mute wrote:and if any one can plz send any input than I can test
Code: Select all
A-
--
-
B--
--
C--
--
--
Code: Select all
--
a-
b--
c-
Code: Select all
adv
-disney-
enture-
in
-japan
land
of
s
Code: Select all
advdisneyentureinjapan
land
of
s
According to the problem statement the correct output is as follows:mute wrote:Thnx MartinCode: Select all
adv -disney- enture- in -japan land of s
Code: Select all
-disneyenturein
-japan
adv
land
of
s
Problem statement wrote:The hyphen character is part of the word if, and only if, not followed by a newline.
Code: Select all
AC
In addition to your output my AC wrote two words more:willima wrote:Here are more 1 case test:
The word "-peer" is there from:-peer
a
adventures
ambitious
and
andy
at
blondes
br
came
com
disney-land
disneyland
dream-theater-scenes
fork
getting
going
guy
have
home
i
in
inside
is
left
little-guy
long
me
mind
moment
now
old
peer-
pop
read
road
sign
so
subconcious
takin
tes-
that
the
they
this
to
two
went
were
what
when
why
will-lima
year
years
and the word "tes-" is there from:...
pe-
er-2-peer!!
...
...
tes-
-1