10595 - Knight on the Bee Board
Moderator: Board moderators
10595 - Knight on the Bee Board
Can anyone give me a few suggestions as to how to
find the moves of the knight from a given cell.
Thx.
find the moves of the knight from a given cell.
Thx.
After ~10 WAs, I couldn't help asking: is the input file well-formed?
Of course, it might be a mistake on my side, but, just wanna ask that... Thx
P.S. My code couldn't reach EOF...... I'm sure about that...
Of course, it might be a mistake on my side, but, just wanna ask that... Thx

P.S. My code couldn't reach EOF...... I'm sure about that...
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
Got accepted finally. My code fails in taking input... Forgot about the blank line after the last test case......... 
Thanks for your attention!

Thanks for your attention!
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
One small hint: your knight can't get out of the bee-board (you probably have noticed that
)

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
Well, it's not much, but here's what I had in my input file
Answers are 4, Impossible, and 20.
Code: Select all
70 2
11
22
7 69
70 5
41
46
10
11
22
7 69
10000 0
1 10000
-
- Guru
- Posts: 647
- Joined: Wed Jun 26, 2002 10:12 pm
- Location: Hong Kong and New York City
- Contact:
Code: Select all
70 3
11
22
7
7 69