490 - Rotating Sentences
Moderator: Board moderators
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
OUTPUT
Good luck to everyone!
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
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
Rotating sentence
Getting WA ??
why??
How to handle TAB??
Where is the catch?
why??
How to handle TAB??
Where is the catch?
-
- A great helper
- Posts: 383
- Joined: Mon Oct 18, 2004 8:25 am
- Location: Bangladesh
- Contact:
Code: Select all
(NOTE: Tabs are not legal characters.)
you can solve it using tow array.
very easy problem
hope your success
keep posting
490 - Rotating Sentences
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.
Code: Select all
DELETED
Last edited by mamun on Tue Oct 04, 2005 9:28 pm, edited 1 time in total.
Re: 490 : why WA with this simple looking problem?
please change to
我是測試的八個字
Code: Select all
if ( sen[k][j] ) putchar(...) ;
-
- New poster
- Posts: 37
- Joined: Fri Apr 30, 2004 6:52 pm
- Location: Portugal
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.

Anyway could anyone post some critical inputs or check my code?
Code: Select all
code AC :P
Last edited by Schutzstaffel on Tue Jan 10, 2006 3:23 pm, edited 1 time in total.
Check the I/O set. Your code returns wrong..
Input:
Output:
Hope it works.
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,
.
"
Code: Select all
".ma I erofereht ,kniht I"
,dias ecno setraceD eneR
J
a
n
Ami ekhono shopno dekhi...
HomePage
HomePage
-
- New poster
- Posts: 37
- Joined: Fri Apr 30, 2004 6:52 pm
- Location: Portugal
here is the edited code.....
Code: Select all
Last edited by abhi on Wed Jan 18, 2006 6:59 pm, edited 2 times in total.
This is what I get with your code for the sample input in the question.
Code: Select all
here is the edited code.....
Code: Select all
Last edited by abhi on Wed Jan 18, 2006 7:00 pm, edited 1 time in total.
Your method for finding maximum column isn't correct.
Look at this input
What should be the output?
Look at this input
Code: Select all
123
12345
1234567
123
12345