Page 3 of 15
Posted: Sun Oct 31, 2004 12:10 pm
by Wei
Well~~Thx a lot~!
I got an AC~~~
Posted: Fri Feb 25, 2005 11:37 pm
by Sedefcho
For anyone who may need some sample IO on
problem 490 including you, Snake.
See below. Hope this IO will be useful.
Please note several things:
( 1 ) The input contains no spaces at all
( 2 ) The stars ( * ) in the output represent spaces.
Pay attention to the fact that I print just as much
stars as needed. For example see the last two
"columns" in the output. They contain no spaces
because there's no longer "column" after them.
( 3 ) I am not sure that printing just as much spaces as
needed ( 2 ) is really required by the Judge. Still,
I have made my program so that it takes
care of that, just in case.
INPUT
Code: Select all
xxx
yyyyyyyyyyy
zzzzzzzz
aaaaaaaaaaaaa
bbbb
ccccccccc
ddddddddddddddddddddd
zzzzzzzzzzzz
fffffffffffffffff
uuuuuuuuuuuuuu
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
mmmmmmmmmmmmmmmmmmm
OUTPUT
Code: Select all
maufzdcbazyx
maufzdcbazyx
maufzdcbazyx
maufzdcbazy
maufzdc*azy
maufzdc*azy
maufzdc*azy
maufzdc*azy
maufzdc*a*y
maufzd**a*y
maufzd**a*y
maufzd**a
mauf*d**a
mauf*d
ma*f*d
ma*f*d
ma*f*d
ma***d
ma***d
*a***d
*a***d
*a
*a
*a
*a
*a
*a
*a
*a
*a
Good luck to everyone!
Posted: Fri Feb 25, 2005 11:43 pm
by Sedefcho
Note:
There's NO empty FIRST line in both INPUT and OUTPUT
I've given above.
All the lines in INPUT contain only lowercase latin
letters and the newline character.
Rotating sentence
Posted: Sun Jun 12, 2005 8:39 am
by Salman
Getting WA ??
why??
How to handle TAB??
Where is the catch?
Posted: Tue Jun 14, 2005 12:08 pm
by emotional blind
Code: Select all
(NOTE: Tabs are not legal characters.)
so you should not handle TAB
you can solve it using tow array.
very easy problem
hope your success
keep posting
490 - Rotating Sentences
Posted: Mon Oct 03, 2005 2:03 pm
by mamun
After reading some posts on 490:WA I decide to post my code as I'm getting WA, don't know for what.
Will be thankful to recieve a help.
Re: 490 : why WA with this simple looking problem?
Posted: Mon Oct 03, 2005 2:27 pm
by SRX
please change to
我是測試的八個字
Posted: Tue Oct 04, 2005 7:06 pm
by mamun
Thanx!!!

Posted: Mon Jan 09, 2006 5:23 am
by Schutzstaffel
I read all posts concerning the problema 490 and after trying every input posted and getting the same outputs I still get WA, I think it might be some presentation error or maybe I missed some case
Anyway could anyone post some critical inputs or check my code?
Thanks in advance.
Posted: Mon Jan 09, 2006 5:25 pm
by Jan
Check the I/O set. Your code returns wrong..
Input:
Code: Select all
"R Jan
Ie
n
te
h
iD
ne
kc
,a
r
tt
he
es
r
eo
fn
oc
re
e
s
Ia
i
ad
m,
.
"
Output:
Code: Select all
".ma I erofereht ,kniht I"
,dias ecno setraceD eneR
J
a
n
Hope it works.
Posted: Tue Jan 10, 2006 3:22 pm
by Schutzstaffel
Thanks a lot, that input/output was really helpful

Got AC.
Posted: Wed Jan 18, 2006 2:32 pm
by abhi
here is the edited code.....
Posted: Wed Jan 18, 2006 2:45 pm
by mamun
This is what I get with your code for the sample input in the question.
Posted: Wed Jan 18, 2006 2:49 pm
by abhi
here is the edited code.....
Posted: Wed Jan 18, 2006 3:13 pm
by mamun
Your method for finding maximum column isn't correct.
Look at this input
What should be the output?