11568 - Pincer Attack!!
Moderator: Board moderators
-
- New poster
- Posts: 20
- Joined: Mon Oct 20, 2008 6:26 am
11568 - Pincer Attack!!
Can anyone provide some tricky test? It's such a troublesome code.
Re: 11568 - Pincer Attack!!
Hi,
I keep get WA. Is the following io I got correct? Thanks in advance!!
Output:
I keep get WA. Is the following io I got correct? Thanks in advance!!
Code: Select all
8
########
#S# #
#E #
# ## #
### T
### ##
## X ##
########
8
########
#S# #
#E # #
T ## #
### #
### ##
## X ##
########
8
########
#S#E #
# #
# #
T # #
### ##
## X ##
########
8
########
#S#W #
# #
# #
T # #
### ##
## X ##
########
8
########
# #E #
# N #
# #
T # #
### ##
## X ##
########
8
########
# #N #
# #
# W #
T # #
### ##
## X ##
########
8
########
#S#W #
# #
# #
T # #
### ##
## X ##
########
0
Code: Select all
ENNEE
You can't escape...
NNWXNWWSW
NNWXNWWSW
NWNNWWSW
NXWNNWWSW
NNWXNWWSW
Re: 11568 - Pincer Attack!!
My AC output:
Code: Select all
ENNEE
You can't escape...
NNWXNNWSWSW
NNWXNNWSWSW
NWNNWWSW
NXWNNWWSW
NNWXNNWSWSW
Re: 11568 - Pincer Attack!!
1) Does bumping into mean robot and person cannot be in *adjacent" squares? Or just that they cannot be in same square?
2) Can robots see through each other?
3) What's wrong with NNWXNWWSW for my 3rd example? why a longer path is required? I simulate this and it looks perfectly fine to me.
Thanks!
2) Can robots see through each other?
3) What's wrong with NNWXNWWSW for my 3rd example? why a longer path is required? I simulate this and it looks perfectly fine to me.
Thanks!
Re: 11568 - Pincer Attack!!
Hi,
2) The movement of a robot doesn't depend on the other.
3) I guess it is related to my point 1)?
1) They cannot be in the same square. So, you cannot move into a square occupied by a robot.baodog wrote:1) Does bumping into mean robot and person cannot be in *adjacent" squares? Or just that they cannot be in same square?
2) Can robots see through each other?
3) What's wrong with NNWXNWWSW for my 3rd example? why a longer path is required? I simulate this and it looks perfectly fine to me.
Thanks!
2) The movement of a robot doesn't depend on the other.
3) I guess it is related to my point 1)?
7th Contest of Newbies
Date: December 31st, 2011 (Saturday)
Time: 12:00 - 16:00 (UTC)
URL: http://uva.onlinejudge.org
Date: December 31st, 2011 (Saturday)
Time: 12:00 - 16:00 (UTC)
URL: http://uva.onlinejudge.org
Re: 11568 - Pincer Attack!!
Thanks! Got accepted.