Page 1 of 2
10644 - Floor Tiles
Posted: Wed May 05, 2004 1:16 pm
by pingus
What is the output for
1 10 1 10
Posted: Wed May 05, 2004 3:20 pm
by Per
The output is 38.
Posted: Wed May 05, 2004 4:51 pm
by pingus
Hello
Thank you for the outputs Per. My code is wrong !
I was thinking that build with that title is equivalent to build with 2*3 titles if we search a rectangle ?
Posted: Wed May 05, 2004 4:59 pm
by Per
No.. for instance, a 9x5-rectangle is possible, but you can't build it out of 2x3-tiles.
Posted: Wed May 05, 2004 7:58 pm
by pingus
Ok. I get it! (Thank to you)
A 5x9 was crucial to find a Mathematical Solution !!
I build it with two "basic" titles.
Now, There is possible other different solution ?
hi everyone
Posted: Thu May 06, 2004 12:19 pm
by ranjit
hi Per,
how did you find out that 9x5 rectangles are possible.
Only after you mentioned it i started looking how it was possible.
Even then it took me a lot of time.
I would like to know how to find out what rectangles are possible.
Posted: Thu May 06, 2004 3:29 pm
by technobug
can anyone point me on how to start looking for the solution? cause i believe i might be looking this problem from the wrong side...
Posted: Thu May 06, 2004 4:47 pm
by little joey
technobug wrote:can anyone point me on how to start looking for the solution? cause i believe i might be looking this problem from the wrong side...
Try to combine smaller rectangles into bigger ones.
One of the basic rectangles is the 2x3. By putting two of them together, you can form either a 4x3 or a 2x6 rectangle. Continue in this matter and you can form 6x3, 8x3, 10x3, etc., or 2x9, 2x12, 2x15, etc. You can also make other combinations: a 2x6 and a 6x3 (rotated) form a 5x6 (and an 8x6, 11x6, etc.).
Like Per mentioned, 5x9 is also a basic rectangle and can be combined the same way. And there are mixtures (three 2x3 form a 2x9, which can be combined with a 5x9 to form a 7x9).
It looks somewhat like a 2 dimensional prime sieve, but now we're after the non-primes...
Posted: Thu May 06, 2004 5:56 pm
by bugzpodder
Per wrote:No.. for instance, a 9x5-rectangle is possible, but you can't build it out of 2x3-tiles.
This is the key insight.
Posted: Fri May 07, 2004 1:28 am
by DJY
I have a question.
How to know how many kinds of "basic rectangle" are and how to find them.
Some hints
Posted: Fri May 07, 2004 6:30 am
by sumankar
Hi,
This is a wonderful problem!
Maybe the following link is a spoiler, but go and study
polyominoes.This is a Triominoes problem if I am not wrong.
Code: Select all
http://www.stetson.edu/~efriedma/order/index.html
Let me know if I am wrong.
Suman
Posted: Mon May 10, 2004 6:31 pm
by dll
anyone tell me what's the output for input
4
1 100 1 100
100 1 100 1
100 100 100 100
1 1000 1 1000
thanks in advance
Posted: Fri May 14, 2004 3:32 am
by Dreamer#1
Someone please help. I'm getting WA in this problem.
For the input:
Code: Select all
4
1 100 1 100
100 1 100 1
100 100 100 100
1 1000 1 1000
My solution gives output:
Anyone with AC please give the correct output.
Thanks a lot.
-Dreamer
Posted: Fri May 14, 2004 5:14 am
by tep
little joey wrote:It looks somewhat like a 2 dimensional prime sieve, but now we're after the non-primes...
can you give more hint?
1. Is there any mathematical explanation why we can only have 2 building blocks, i.e 2x3 and 5x9?
2. how do you know that mxn rectangle can be built with those building blocks(2x3,3x2,9x5,5x9)?
3. In general, if we have k building blocks, i.e
m1 x n1
m2 x n2
......
mk x nk
how do we determine if pxq rectangle can be built with those k building blocks ?
Tiling is one of my weakness, please help.
Thanx
regards,
stephanus
Posted: Fri May 14, 2004 7:56 am
by ranjit
My ac code gives the op :
hope this helps.
ranjit.