Page 1 of 2
10885 - Martin the Gardener
Posted: Sun Jul 31, 2005 9:56 pm
by Antonio Ocampo
Hi guys
I don
Posted: Sun Jul 31, 2005 11:03 pm
by misof
Posted: Sun Jul 31, 2005 11:25 pm
by Antonio Ocampo
That paper is very hard for me

. What I feel is, if this is the expected way to solve the problem, then this is a maths problem instead of programming problem. Thx anyway

Posted: Sun Jul 31, 2005 11:28 pm
by misof
Well, it was "Abednego's Mathy Contest", so one could expect math problems...
(And don't worry, the paper was too hard for me too, I found it during the contest but couldn't make a working solution... I plan to get back to this task once I have more time

)
Posted: Mon Aug 01, 2005 8:54 am
by Abednego
No hard papers are required. The idea is very simple. I was very happy when 1 person solved this problem during the contest! He ended up in the 155'th place. :-)
The key observation is the following. Suppose that you know how to plant 13 trees at rational coordinates, so that the distance between each pair of trees is a rational number. Then you can simply multiply every coordinate by the common denominator of everything (coordinates and distances), and you will get integer coordinates and integer distances.
Now how do we solve the problem in rational numbers? That's not very hard at all. Here is a hint. We are not allowed to place 3 trees on the same line. If you add the restriction that no 4 trees are allowed on the same circle, then this is a famous unsolved problem. The largest number of trees that anyone knows how to place with the additional no-4-on-a-circle constraint is 6.
Posted: Mon Aug 01, 2005 10:45 am
by Cho
Hmmm.. It turns out that, for me, understanding misof's reference is easier than getting insight from Abednego's hint.

Posted: Mon Aug 01, 2005 11:38 am
by Cosmin.ro
I think he means all points are on a circle.
Posted: Tue Aug 02, 2005 5:23 am
by Antonio Ocampo
I'm so frustrated

Posted: Wed Aug 10, 2005 10:42 am
by gush
This is my answer:
....
I've tested that the distances between them are integers. But I still got WA. Why?
Posted: Wed Aug 10, 2005 11:27 am
by Cosmin.ro
Maybe 3 colinear points, have you tested that?
Posted: Wed Aug 10, 2005 11:55 am
by gush
All the points are on the same circle. So there should be no 3 points in the same line.
Posted: Wed Aug 10, 2005 1:13 pm
by little joey
gush, your values are OK and I just got AC with them.
Please make sure you send in a program that prints them, not just a text file that contains them.
Posted: Wed Aug 10, 2005 6:05 pm
by Abednego
gush, and when you get AC, please don't forget to remove the numbers from your post. Thanks.
Posted: Thu Aug 11, 2005 10:57 am
by gush
ok
Posted: Sat Aug 20, 2005 5:36 pm
by kp
So points should be on a cirle, but what's next?
Should I look for points like
x = R*cos(k*phi)
y = R*sin(k*phi)
k = 0..12
for some R and phi?
If yes then how can I find such R and phi?