Rookie rook

Discuss about the puzzles, but without giving the solutions please !!!

Rookie rook

Postby admin » Sun May 01, 2011 7:01 pm

For this puzzle, the goal is to determine how many positions on a chessboard are controlled by a set of rooks. A rook controls every position vertically and horizontally with respect to its own position. The chessboard only contains rooks or empty spots.


In addition: the rook is considered to also control the its own position !


Last edited by admin on Wed May 18, 2011 2:53 am, edited 1 time in total.
Reason: Edit
User avatar
admin
Site Admin
 
Posts: 333
Joined: Thu Dec 23, 2010 1:27 am

Re: Rookie rook

Postby browni3141 » Tue May 10, 2011 10:11 am

Does a rook control its own square? It certainly shouldn't, but that would make the problem harder.
No piece in chess controls its own square.
User avatar
browni3141
 
Posts: 19
Joined: Mon Jan 31, 2011 11:05 am

Re: Rookie rook

Postby admin » Wed May 11, 2011 2:53 pm

For the problem, the rook is considered to control its own square, after all the problem is a level 1-Easy ;)
But you're right about chess !
User avatar
admin
Site Admin
 
Posts: 333
Joined: Thu Dec 23, 2010 1:27 am

Re: Rookie rook

Postby vishram0709 » Sat May 14, 2011 10:05 pm

to admin:: my solution to rook's problem seems correct
i tested it for more then 25 different tests but uploading to the site always shows my submission failed ..
why is it so..
can i send u the solution just tell me whether my solution is correct or not
User avatar
vishram0709
 
Posts: 2
Joined: Thu May 12, 2011 1:22 am

Re: Rookie rook

Postby admin » Sun May 15, 2011 8:46 pm

More precisely, do you pass "Verify" ?
You can PM me your solution, I may take a look if I find time.

Thank you
User avatar
admin
Site Admin
 
Posts: 333
Joined: Thu Dec 23, 2010 1:27 am

Re: Rookie rook

Postby vishram0709 » Tue May 17, 2011 6:15 am

yes my solution gets verified ...
how can i PM you solution
User avatar
vishram0709
 
Posts: 2
Joined: Thu May 12, 2011 1:22 am

Re: Rookie rook

Postby lionelb » Tue May 17, 2011 8:31 am

ah! I stared at my solution for half an hour before I realized you are counting the rook as controlling its own square. I would suggest putting this in the problem statement because that's not how it works in chess.
User avatar
lionelb
 
Posts: 3
Joined: Thu Feb 03, 2011 9:17 am

Re: Rookie rook

Postby admin » Wed May 18, 2011 2:54 am

vishram0709 wrote:yes my solution gets verified ...
how can i PM you solution


Just next to my message, on the right, there's admin, the post count etc... and small grey button "PM".
User avatar
admin
Site Admin
 
Posts: 333
Joined: Thu Dec 23, 2010 1:27 am

Re: Rookie rook

Postby admin » Fri May 20, 2011 8:34 pm

Additional test case
Code: Select all
1
16 34
16 6
6 9
16 16
8 13
11 14
7 3
7 12
2 8
13 8
12 1
10 3
3 3
10 7
7 6
7 1
6 6
11 1
15 4
12 10
11 13
9 11
13 2
16 4
11 9
9 10
5 15
2 3
16 12
13 1
10 5
15 2
6 1
11 3
15 6

Solution
Code: Select all
256
User avatar
admin
Site Admin
 
Posts: 333
Joined: Thu Dec 23, 2010 1:27 am

Re: Rookie rook

Postby AlexFromOmaha » Sun May 22, 2011 3:12 pm

Are we assuming that each rook occupies a distinct rank and file from all other rooks, until it is no longer possible for this to be true?
User avatar
AlexFromOmaha
 
Posts: 1
Joined: Sun May 22, 2011 3:06 pm

Next

Return to Puzzles

Who is online

Users browsing this forum: No registered users and 0 guests

cron